MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / fuzzy

Function fuzzy

lib/web/preamble.js:60–68  ·  view source on GitHub ↗
(pat)

Source from the content-addressed store, hash-verified

58function fuzzy(pat) {
59 m = pat.split(" ");
60 var s = "";
61 for (var i = 0; i < m.length; i++) {
62 s += "(" + m[i] + ")([^\<\>]*)"
63 }
64 pattern = new RegExp(s, "i");
65 return pattern;
66}
67stripTags = function(n) {
68 a = new RegExp("<[^>]*>","ig")
69 return n.replace(a)
70}
71

Callers 1

preamble.jsFile · 0.70

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected