- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 206 for regexec (0.2 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/library/regex.go
// "123 abc 456".findAll('[0-9]*', 1) // returns ['123'] // "123 abc 456".findAll('xyz') // returns [] func Regex() cel.EnvOption { return cel.Lib(regexLib) } var regexLib = ®ex{} type regex struct{} func (*regex) LibraryName() string { return "k8s.regex" } var regexLibraryDecls = map[string][]cel.FunctionOpt{ "find": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 5.7K bytes - Viewed (0) -
pilot/pkg/config/kube/ingress/testdata/simple.yaml
number: 4202 # Regex ending with .* - path: /regex1.* backend: service: name: service1 port: number: 4203 # Regex ending with * - path: /regex2* backend: service: name: service1 port: number: 4204 # Regex ending with /* - path: /regex3/*
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 10 16:43:09 UTC 2023 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/cors_test.go
} if regexes[0].MatchString("Something that doesn't endsWithMe.") { t.Errorf("Wrong regex returned: '%v': %v", uncompiledRegexes[0], regexes[0]) } if !regexes[1].MatchString("startingWithMe is very important") { t.Errorf("Wrong regex returned: '%v': %v", uncompiledRegexes[1], regexes[1]) } if regexes[1].MatchString("not startingWithMe should fail") {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 20 19:15:51 UTC 2023 - 7.9K bytes - Viewed (0) -
src/internal/profile/filter.go
im = im || ignored if focused && !ignored { samples = append(samples, s) } } p.Sample = samples return } // focusedSample checks a sample against focus and ignore regexps. // Returns whether the focus/ignore regexps match any tags. func focusedSample(s *Sample, focus, ignore TagMatch) (fm, im bool) { fm = focus == nil for key, vals := range s.Label { for _, val := range vals {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 17:57:40 UTC 2024 - 1.4K bytes - Viewed (0) -
cmd/dependencycheck/dependencycheck.go
log.Fatalf("Must specify restricted regex pattern") } depsPattern, err := regexp.Compile(*restrict) if err != nil { log.Fatalf("Error compiling restricted dependencies regex: %v", err) } var excludePattern *regexp.Regexp if *exclude != "" { excludePattern, err = regexp.Compile(*exclude) if err != nil { log.Fatalf("Error compiling excluded package regex: %v", err) } } b, err := os.ReadFile(args[0])
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 3K bytes - Viewed (0) -
test/codegen/README
toolchain from a released Go version (and verify that the new tests fail), and then re-running the tests using the devel toolchain. - Regexps comments syntax Instructions to match are specified inside plain comments that start with an architecture tag, followed by a colon and a quoted Go-style regexp to be matched. For example, the following test: func Sqrt(x float64) float64 { // amd64:"SQRTSD" // arm64:"FSQRTD"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/cors.go
func compileRegexps(regexpStrings []string) ([]*regexp.Regexp, error) { regexps := []*regexp.Regexp{} for _, regexpStr := range regexpStrings { r, err := regexp.Compile(regexpStr) if err != nil { return []*regexp.Regexp{}, err } regexps = append(regexps, r) } return regexps, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 15 13:59:10 UTC 2022 - 4.6K bytes - Viewed (0) -
pkg/volume/iscsi/attacher.go
} if mountArgs.SELinuxLabel != "" { options = volumeutil.AddSELinuxMountOption(options, mountArgs.SELinuxLabel) } if notMnt { diskMounter := &mount.SafeFormatAndMount{Interface: mounter, Exec: attacher.host.GetExec(iscsiPluginName)} mountOptions := volumeutil.MountOptionFromSpec(spec, options...) err = diskMounter.FormatAndMount(devicePath, deviceMountPath, fsType, mountOptions) if err != nil { os.Remove(deviceMountPath)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 04 08:51:31 UTC 2022 - 6.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go
if len(expectRuntimeErrPattern) > 0 { if err == nil { t.Fatalf("no runtime error thrown. Expected: %v", expectRuntimeErrPattern) } else if matched, regexErr := regexp.MatchString(expectRuntimeErrPattern, err.Error()); regexErr != nil { t.Fatalf("failed to compile expected err regex: %v", regexErr) } else if !matched { t.Fatalf("unexpected err: %v", err) } } else if err != nil { t.Fatalf("%v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 8.6K bytes - Viewed (0) -
platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/ExecHandleFactory.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.process.internal; public interface ExecHandleFactory { ExecHandleBuilder newExec();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:10:02 UTC 2023 - 727 bytes - Viewed (0)