* @param {string} pattern * @param {string[]} replacements * @param {string} [flags] * @returns {RegExp}
(pattern, replacements, flags)
| 22 | * @returns {RegExp} |
| 23 | */ |
| 24 | function re(pattern, replacements, flags) { |
| 25 | return RegExp(replace(pattern, replacements), flags || ''); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Creates a nested pattern where all occurrences of the string `<<self>>` are replaced with the pattern itself. |
no test coverage detected