(str)
| 215 | } |
| 216 | |
| 217 | function stringToRegExp(str) { |
| 218 | let idValue = str.match(regExpRegex); |
| 219 | if (idValue && idValue[1]) { |
| 220 | const [, pattern, flags] = idValue[1].match(/^\/(.*)\/([gimuy]+)?$/); |
| 221 | return new RegExp(pattern, flags); |
| 222 | } |
| 223 | return str; |
| 224 | } |
| 225 | |
| 226 | const getCircularReplacer = () => { |
| 227 | const seen = new WeakSet(); |
no outgoing calls
no test coverage detected