We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ccdb9 commit e26752bCopy full SHA for e26752b
src/validator.js
@@ -32,7 +32,7 @@ exports.validate = function (xmlData, options) {
32
// check for byte order mark (BOM)
33
xmlData = xmlData.substr(1);
34
}
35
- const regxAttrName = new RegExp(`^[${options.localeRange}_][${options.localeRange}0-9\\-\\.:]*$`);
+ const regxAttrName = new RegExp(`^[${options.localeRange}_][${options.localeRange}0-9_\\-\\.:]*$`);
36
const regxTagName = new RegExp(`^([${options.localeRange}_])[${options.localeRange}0-9\\.\\-_:]*$`);
37
for (let i = 0; i < xmlData.length; i++) {
38
if (xmlData[i] === '<') {
0 commit comments