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 e6e2076 commit b21704bCopy full SHA for b21704b
scripts/utils.ts
@@ -17,6 +17,7 @@ export async function downloadString(url: string): Promise<string> {
17
/**
18
* Find the position of the first pattern match.
19
* Search from the specified position, or from the beginning if not specified.
20
+ * If `offset` is negative value, the starting position is counted from the end of the string.
21
* Returns -1 if the pattern not match.
22
*/
23
export function regexIndexOf(s: string, pattern: RegExp, offset = 0): number {
0 commit comments