Sha256: debe8ae2150de88dc3041a81526ec6a26999ee41fe496e63bc2b7c1d1901dd45

Contents?: true

Size: 449 Bytes

Versions: 22

Compression:

Stored size: 449 Bytes

Contents

"use strict";
const parser = require("./generated-parser.js");

exports.name = function (potentialName) {
    return mapResult(parser.startWith("Name").exec(potentialName));
};

exports.qname = function (potentialQname) {
    return mapResult(parser.startWith("QName").exec(potentialQname));
};

function mapResult(result) {
    return {
        success: result.success,
        error: result.error && parser.getTrace(result.error.message)
    };
}

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
appmap-0.72.2 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.72.1 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.72.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.71.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.70.2 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.70.1 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.70.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.69.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.68.2 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.68.1 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.68.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.67.1 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.67.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.66.2 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.66.1 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.66.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.65.1 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.65.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.64.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js
appmap-0.63.0 ./node_modules/xml-name-validator/lib/xml-name-validator.js