You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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;
|
|
}
|
|
|
|
module.exports = indexOfMatch;
|
|
module.exports.default = indexOfMatch;
|