This commit is contained in:
6
node_modules/xml-utils/index-of-match.mjs
generated
vendored
Normal file
6
node_modules/xml-utils/index-of-match.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export default function indexOfMatch(xml, pattern, startIndex) {
|
||||
const re = new RegExp(pattern);
|
||||
const match = re.exec(xml.slice(startIndex));
|
||||
if (match) return startIndex + match.index;
|
||||
else return -1;
|
||||
}
|
||||
Reference in New Issue
Block a user