MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / matchRegex

Function matchRegex

worker/task.go:1809–1811  ·  view source on GitHub ↗
(value types.Val, regex *cregexp.Regexp)

Source from the content-addressed store, hash-verified

1807}
1808
1809func matchRegex(value types.Val, regex *cregexp.Regexp) bool {
1810 return len(value.Value.(string)) > 0 && regex.MatchString(value.Value.(string), true, true) > 0
1811}
1812
1813type functionContext struct {
1814 tokens []string

Callers 1

handleRegexFunctionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…