MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / parseQuery

Function parseQuery

static/js/codemirror/addon/search/search.js:44–47  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

42 else if (confirm(shortText)) fs[0]();
43 }
44 function parseQuery(query) {
45 var isRE = query.match(/^\/(.*)\/([a-z]*)$/);
46 return isRE ? new RegExp(isRE[1], isRE[2].indexOf("i") == -1 ? "" : "i") : query;
47 }
48 var queryDialog =
49 'Search: <input type="text" style="width: 10em"/> <span style="color: #888">(Use /re/ syntax for regexp search)</span>';
50 function doSearch(cm, rev) {

Callers 2

doSearchFunction · 0.70
replaceFunction · 0.70

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected