MCPcopy Create free account
hub / github.com/bathos/Ecmascript-Sublime / regexp

Function regexp

nested/src/modify-ecmascript.js:122–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 : z_yaml;
121
122 const regexp = r_source => r_source.toString().replace(/^\/(.+)\/[^/]*/, '$1');
123
124 const match_replace = (r_find, s_replace) => g_rule => g_rule.match = g_rule.match.replace(r_find, s_replace);
125

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected