(patterns)
| 14 | * that each expression is executed separately. |
| 15 | */ |
| 16 | export function combinePatterns(patterns) { |
| 17 | return patterns.map(p => `(?:${p.source})`).join('|'); |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Modify substrings within a string if they match a (global) pattern. Can be |
no test coverage detected