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