(re: RegExp, str: string)
| 1177 | } |
| 1178 | } |
| 1179 | function matchAll(re: RegExp, str: string): RegExpExecArray[] { |
| 1180 | const matches = [] |
| 1181 | while (true) { |
| 1182 | const match = re.exec(str) |
| 1183 | if (!match) |
| 1184 | break |
| 1185 | |
| 1186 | matches.push(match) |
| 1187 | } |
| 1188 | return matches |
| 1189 | } |
| 1190 | if (searchValue.global) { |
| 1191 | const matches = matchAll(searchValue, this.original) |
| 1192 | matches.forEach((match) => { |
nothing calls this directly
no outgoing calls
no test coverage detected