diff options
Diffstat (limited to 'school/node_modules/xml-name-validator/lib/xml-name-validator.js')
-rw-r--r-- | school/node_modules/xml-name-validator/lib/xml-name-validator.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/school/node_modules/xml-name-validator/lib/xml-name-validator.js b/school/node_modules/xml-name-validator/lib/xml-name-validator.js deleted file mode 100644 index 54695fa..0000000 --- a/school/node_modules/xml-name-validator/lib/xml-name-validator.js +++ /dev/null @@ -1,17 +0,0 @@ -"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) - }; -} |