MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / inlineRE

Function inlineRE

mini-code-edit/cm/mode/markdown/markdown.js:167–174  ·  view source on GitHub ↗
(endChar)

Source from the content-addressed store, hash-verified

165 }
166
167 function inlineRE(endChar) {
168 if (!inlineRE[endChar]) {
169 // match any not-escaped-non-endChar and any escaped char
170 // then match endChar or eol
171 inlineRE[endChar] = new RegExp('^(?:[^\\\\\\' + endChar + ']|\\\\.)*(?:\\' + endChar + '|$)');
172 }
173 return inlineRE[endChar];
174 }
175
176 function inlineElement(type, endChar, next) {
177 next = next || inlineNormal;

Callers 1

inlineElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected