(re: RegExp, str: string)
| 1135 | } |
| 1136 | } |
| 1137 | function matchAll(re: RegExp, str: string): RegExpExecArray[] { |
| 1138 | const matches = [] |
| 1139 | while (true) { |
| 1140 | const match = re.exec(str) |
| 1141 | if (!match) |
| 1142 | break |
| 1143 | |
| 1144 | matches.push(match) |
| 1145 | } |
| 1146 | return matches |
| 1147 | } |
| 1148 | if (searchValue.global) { |
| 1149 | const matches = matchAll(searchValue, this.original) |
| 1150 | matches.forEach((match) => { |
nothing calls this directly
no outgoing calls
no test coverage detected