Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/devtools
/ stripRange
Function
stripRange
examples/react/basic/src/package-json-panel.tsx:43–43 ·
view source on GitHub ↗
(v?: string)
Source
from the content-addressed store, hash-verified
41
42
// Helpers
43
const stripRange = (v?: string) => (v ??
''
).replace(/^[~^><=v\s]*/,
''
)
44
const parseSemver = (v?: string) => {
45
const s = stripRange(v)
46
const m = s.match(/^(\d+)\.(\d+)\.(\d+)/)
Callers
1
parseSemver
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected