MCPcopy Create free account
hub / github.com/effect-app/libs / normalizeVersion

Function normalizeVersion

packages/cli/src/sync-effect-subtree.ts:16–19  ·  view source on GitHub ↗
(range: string)

Source from the content-addressed store, hash-verified

14const shellQuote = (value: string) => `'${value.replaceAll("'", "'\\''")}'`
15
16const normalizeVersion = (range: string) => {
17 const match = range.match(/\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?/)
18 return match?.[0]
19}
20
21export const syncEffectSubtree = Effect.fnUntraced(function*(config: SyncEffectConfig) {
22 const fs = yield* FileSystem.FileSystem

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…