(re: RegExp, str: string)
| 1151 | } |
| 1152 | } |
| 1153 | function matchAll(re: RegExp, str: string): RegExpExecArray[] { |
| 1154 | const matches = [] |
| 1155 | while (true) { |
| 1156 | const match = re.exec(str) |
| 1157 | if (!match) |
| 1158 | break |
| 1159 | |
| 1160 | matches.push(match) |
| 1161 | } |
| 1162 | return matches |
| 1163 | } |
| 1164 | if (searchValue.global) { |
| 1165 | const matches = matchAll(searchValue, this.original) |
| 1166 | matches.forEach((match) => { |
nothing calls this directly
no outgoing calls
no test coverage detected