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

Function parseQuery

mini-code-edit/cm/lib/util/search.js:25–28  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

23 else if (confirm(shortText)) fs[0]();
24 }
25 function parseQuery(query) {
26 var isRE = query.match(/^\/(.*)\/$/);
27 return isRE ? new RegExp(isRE[1]) : query;
28 }
29 var queryDialog =
30 'Search: <input type="text" style="width: 10em"/> <span style="color: #888">(Use /re/ syntax for regexp search)</span>';
31 function doSearch(cm, rev) {

Callers 2

doSearchFunction · 0.85
replaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected