Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ isMatch
Function
isMatch
playground/hmr-ssr/__tests__/hmr-ssr.spec.ts:1005–1006 ·
view source on GitHub ↗
(matcher: string | RegExp)
Source
from the content-addressed store, hash-verified
1003
1004
try {
1005
const
isMatch = (matcher: string | RegExp) => (text: string) =>
1006
typeof matcher ===
'string'
? text === matcher : matcher.test(text)
1007
1008
let
processMsg: (text: string) => boolean
1009
Callers
1
untilConsoleLog
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected