MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / looksLikePath

Function looksLikePath

test/unit/mcpServer_test.js:20–25  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

18}
19
20function looksLikePath(v) {
21 return typeof v === 'string' && (
22 v.includes('/') || v.includes('\\') ||
23 v.endsWith('.js') || v.endsWith('.ts')
24 )
25}
26
27function normalizePath(p) {
28 return String(p).replace(/\\/g, '/')

Callers 1

mcpServer_test.jsFile · 0.70

Calls 1

includesMethod · 0.80

Tested by

no test coverage detected