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

Function addSubstring

packages/decap-cms-widget-markdown/src/regexHelper.js:102–104  ·  view source on GitHub ↗

* Factory for converting substrings to data objects and adding to an output * array.

(arr, index, text, match = false)

Source from the content-addressed store, hash-verified

100 * array.
101 */
102 function addSubstring(arr, index, text, match = false) {
103 arr.push({ index, text, match });
104 }
105
106 /**
107 * Split the input string to an array of data objects, each representing a

Callers 1

splitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected