- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for skipRegexCheck (0.17 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/escaping.go
} return filter } type escapeCheck struct { canSkipRegex bool invalidCharFound bool } // skipRegexCheck checks if escape would be skipped. // if invalidCharFound is true, it must have invalid character; if invalidCharFound is false, not sure if it has invalid character or not func skipRegexCheck(ident string) escapeCheck { escapeCheck := escapeCheck{canSkipRegex: true, invalidCharFound: false} // skip escape if possible
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/escaping_test.go
// if escape keyword is detected before invalid character, invalidCharFound {unescaped: "/👑", canSkip: false}, } for _, tc := range cases { t.Run(tc.unescaped, func(t *testing.T) { escapeCheck := skipRegexCheck(tc.unescaped) if escapeCheck.invalidCharFound { if escapeCheck.invalidCharFound != tc.invalidCharFound { t.Errorf("Expected input validation to be %v, but got %t", tc.invalidCharFound, escapeCheck.invalidCharFound)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 6.9K bytes - Viewed (0)