MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / matchAll

Method matchAll

benchmark/data.js:801–808  ·  view source on GitHub ↗
(re, str)

Source from the content-addressed store, hash-verified

799 }
800 }
801 function matchAll(re, str) {
802 let match;
803 const matches = [];
804 while ((match = re.exec(str))) {
805 matches.push(match);
806 }
807 return matches;
808 }
809 if (typeof searchValue !== 'string' && searchValue.global) {
810 const matches = matchAll(searchValue, this.original);
811 matches.forEach((match) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected