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