All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
10 lines
269 B
JavaScript
10 lines
269 B
JavaScript
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;
|