(match, p1, p2, p3, offset, string, groups)
| 1898 | it('replace function offset', () => { |
| 1899 | // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_function_as_a_parameter |
| 1900 | function replacer(match, p1, p2, p3, offset, string, groups) { |
| 1901 | // p1 is nondigits, p2 digits, and p3 non-alphanumerics |
| 1902 | return [match, p1, p2, p3, offset, string, groups].join(' - ') |
| 1903 | } |
| 1904 | const code = 'abc12345#$*%' |
| 1905 | const regex = /(\D*)(\d*)(\W*)/ |
| 1906 | assert.strictEqual( |
nothing calls this directly
no outgoing calls
no test coverage detected