MCPcopy Create free account
hub / github.com/denoland/std / match

Method match

toml/_parser.ts:130–136  ·  view source on GitHub ↗
(regExp: RegExp)

Source from the content-addressed store, hash-verified

128 }
129
130 match(regExp: RegExp) {
131 if (!regExp.sticky) {
132 throw new Error(`RegExp ${regExp} does not have a sticky 'y' flag`);
133 }
134 regExp.lastIndex = this.#position;
135 return this.#source.match(regExp);
136 }
137}
138
139// -----------------------

Callers 15

parseRangeHeaderFunction · 0.80
assertHasNoNewlineFunction · 0.80
fnFunction · 0.80
parseArgsFunction · 0.80
getCursorRowFunction · 0.80
loadEastAsianWidthsFunction · 0.80
stringifyFunction · 0.80
getIndentFunction · 0.80
parseValueFunction · 0.80
joinKeysFunction · 0.80
bareKeyFunction · 0.80
booleanFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected