MCPcopy Create free account
hub / github.com/Snapchat/Valdi / c

Function c

valdi/vscode_debugger/demos/node/micromatch.js:7–7  ·  view source on GitHub ↗
(t,e)

Source from the content-addressed store, hash-verified

5 * Copyright (c) 2014-2017, Jon Schlinkert.
6 * Released under the MIT License.
7 */t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,e){t.exports=require("util")},function(t,e,r){"use strict";var n=r(24),i=r(18),o=r(5),s=r(7),a=65536,u={};function c(t,e){if(t instanceof RegExp)return t;if("string"!=typeof t)throw new TypeError("expected a string");if(t.length>a)throw new Error("expected pattern to be less than "+a+" characters");var r=t;if((!e||e&&!1!==e.cache)&&(r=function(t,e){if(!e)return t;var r=t;for(var n in e)e.hasOwnProperty(n)&&(r+=";"+n+"="+String(e[n]));return r}(t,e),u.hasOwnProperty(r)))return u[r];var c=o({},e);!0===c.contains&&(!0===c.negate?c.strictNegate=!1:c.strict=!1),!1===c.strict&&(c.strictOpen=!1,c.strictClose=!1);var p,f=!1!==c.strictOpen?"^":"",l=!1!==c.strictClose?"$":"",h=c.flags||"";!0!==c.nocase||/i/.test(h)||(h+="i");try{if((c.negate||"boolean"==typeof c.strictNegate)&&(t=s.create(t,c)),p=new RegExp(f+"(?:"+t+")"+l,h),!0===c.safe&&!1===n(p))throw new Error("potentially unsafe regular expression: "+p.source)}catch(n){if(!0===c.strictErrors||!0===c.safe)throw n.key=r,n.pattern=t,n.originalOptions=e,n.createdOptions=c,n;try{p=new RegExp("^"+t.replace(/(\W)/g,"\\$1")+"$")}catch(t){p=/.^/}}return!1!==c.cache&&function(t,e,r,n){i(t,"cached",!0),i(t,"pattern",r),i(t,"options",n),i(t,"key",e),u[e]=t}(p,r,t,c),p}t.exports=function(t,e){return Array.isArray(t)?c(t.join("|"),e):c(t,e)},t.exports.makeRe=c},function(t,e,r){"use strict";
8/*!
9 * is-extendable <https://github.com/jonschlinkert/is-extendable>
10 *

Callers 14

runFunction · 0.85
micromatch.jsFile · 0.85
oFunction · 0.85
fFunction · 0.85
aFunction · 0.85
lFunction · 0.85
dFunction · 0.85
gFunction · 0.85
oFunction · 0.85
oFunction · 0.85
runFunction · 0.85
runFunction · 0.85

Calls 14

nFunction · 0.85
isAbsoluteMethod · 0.80
oFunction · 0.70
iFunction · 0.70
sFunction · 0.70
tFunction · 0.70
createMethod · 0.65
replaceMethod · 0.65
callMethod · 0.65
StringClass · 0.50
NumberClass · 0.50
testMethod · 0.45

Tested by

no test coverage detected