This commit is contained in:
lalBi94
2023-03-05 13:23:23 +01:00
commit 7bc56c09b5
14034 changed files with 1834369 additions and 0 deletions

11
node_modules/@riotjs/parser/src/utils/exec-from-pos.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
/**
* Run RegExp.exec starting from a specific position
* @param {RegExp} re - regex
* @param {number} pos - last index position
* @param {string} string - regex target
* @returns {Array} regex result
*/
export default function execFromPos(re, pos, string) {
re.lastIndex = pos
return re.exec(string)
}