MCPcopy
hub / github.com/apache/casbin / HasEval

Function HasEval

util/util.go:244–246  ·  view source on GitHub ↗

HasEval determine whether matcher contains function eval.

(s string)

Source from the content-addressed store, hash-verified

242
243// HasEval determine whether matcher contains function eval.
244func HasEval(s string) bool {
245 return evalReg.MatchString(s)
246}
247
248// ReplaceEval replace function eval with the value of its parameters.
249func ReplaceEval(s string, rule string) string {

Callers 2

enforceMethod · 0.92
testContainEvalFunction · 0.85

Calls

no outgoing calls

Tested by 1

testContainEvalFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…