MCPcopy Create free account
hub / github.com/decaporg/decap-cms / combinePatterns

Function combinePatterns

packages/decap-cms-widget-markdown/src/regexHelper.js:16–18  ·  view source on GitHub ↗
(patterns)

Source from the content-addressed store, hash-verified

14 * that each expression is executed separately.
15 */
16export 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

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected