MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / init

Function init

scan.go:24–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 nilCursorLedis = []byte("")
23 nilCursorRedis = []byte("0")
24)
25
26// globToRegex converts a Redis glob pattern to a regex pattern
27// Redis glob patterns use * (any number of characters), ? (single character), [..] (character class)
28func globToRegex(pattern string) string {
29 if pattern == "" {
30 return "^$"
31 }
32
33 var regex strings.Builder
34 regex.WriteString("^")
35

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected