Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 536 for NegExp (0.08 sec)

  1. pilot/pkg/security/authz/matcher/header.go

    			HeaderMatchSpecifier: &routepb.HeaderMatcher_PresentMatch{
    				PresentMatch: true,
    			},
    		}
    	} else if strings.HasPrefix(v, "*") {
    		regex = `.*` + regexp.QuoteMeta(v[1:])
    	} else if strings.HasSuffix(v, "*") {
    		regex = regexp.QuoteMeta(v[:len(v)-1]) + `.*`
    	} else {
    		regex = regexp.QuoteMeta(v)
    	}
    	return &routepb.HeaderMatcher{
    		Name: k,
    		HeaderMatchSpecifier: &routepb.HeaderMatcher_StringMatch{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 17 22:42:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. pkg/test/framework/resource/matcher.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package resource
    
    import (
    	"regexp"
    	"strconv"
    	"strings"
    )
    
    // testFilter is a regex matcher on a test. It is split by / following go subtest format
    type testFilter []*regexp.Regexp
    
    type Matcher struct {
    	filters []testFilter
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 12 23:30:37 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  3. src/main/webapp/css/admin/respond.min.js

    ar i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b....
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Oct 08 12:14:13 UTC 2015
    - 4.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_test.go

    	if match, _ := regexp.MatchString(`"Observed a panic" panic="test panic"`, lines[0]); !match {
    		t.Errorf("mismatch panic message: %s", lines[0])
    	}
    	// The following regexp's verify that Kubernetes panic log matches Golang stdlib
    	// stacktrace pattern. We need to update these regexp's if stdlib changes its pattern.
    	if match, _ := regexp.MatchString(`goroutine [0-9]+ \[.+\]:`, lines[1]); !match {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. docs/debugging/pprofgoparser/main.go

    package main
    
    import (
    	"bufio"
    	"bytes"
    	"flag"
    	"fmt"
    	"log"
    	"math"
    	"os"
    	"path"
    	"regexp"
    	"strconv"
    	"strings"
    	"time"
    )
    
    var (
    	goroutinesRE, searchRE *regexp.Regexp
    
    	// User input flags
    	searchText           string
    	goTime, less, margin time.Duration
    )
    
    func init() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Mar 06 11:43:16 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/security.go

    func checkFlags(name, source string, list []string, invalid, valid []*lazyregexp.Regexp, validNext []string, checkOverrides bool) error {
    	// Let users override rules with $CGO_CFLAGS_ALLOW, $CGO_CFLAGS_DISALLOW, etc.
    	var (
    		allow    *regexp.Regexp
    		disallow *regexp.Regexp
    	)
    	if checkOverrides {
    		if env := cfg.Getenv("CGO_" + name + "_ALLOW"); env != "" {
    			r, err := regexp.Compile(env)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:34 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. src/io/ioutil/tempfile_test.go

    		}
    		defer os.Remove(name)
    
    		re := regexp.MustCompile(wantRePat)
    		if !re.MatchString(name) {
    			t.Errorf("TempDir(%q, %q) created bad name\n\t%q\ndid not match pattern\n\t%q", dir, pattern, name, wantRePat)
    		}
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.pattern, func(t *testing.T) {
    			wantRePat := "^" + regexp.QuoteMeta(filepath.Join(dir, tt.wantPrefix)) + "[0-9]+" + regexp.QuoteMeta(tt.wantSuffix) + "$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 18 00:47:29 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  8. src/testing/match_test.go

    		}
    
    		// If there is any error in the pattern, one of the returned subpatterns
    		// needs to have an error as well.
    		if _, err := regexp.Compile(tc.pattern); err != nil {
    			ok := true
    			if err := a.verify("", regexp.MatchString); err != nil {
    				ok = false
    			}
    			if ok {
    				t.Errorf("%s: expected error in any of %q", tc.pattern, a)
    			}
    		}
    	}
    }
    
    func TestMatcher(t *T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:48:54 UTC 2022
    - 8K bytes
    - Viewed (0)
  9. logger/sql_test.go

    		es                 = ExampleStruct{Name: "test", Val: "test"}
    		intVal   intType   = 1
    		floatVal floatType = 1.23
    	)
    
    	results := []struct {
    		SQL           string
    		NumericRegexp *regexp.Regexp
    		Vars          []interface{}
    		Result        string
    	}{
    		{
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/stackcheck_test.go

        grows 8 bytes, calls main.startRec0<0>
            grows 8 bytes, calls main.startRec<0>
            infinite cycle
    `,
    	}
    
    	// Parse stanzas
    	stanza := regexp.MustCompile(`^(.*): nosplit stack over \d+ byte limit\n(.*\n(?: .*\n)*)`)
    	// Strip comments from cmd/go
    	out = regexp.MustCompile(`(?m)^#.*\n`).ReplaceAllString(out, "")
    	for len(out) > 0 {
    		m := stanza.FindStringSubmatch(out)
    		if m == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.2K bytes
    - Viewed (0)
Back to top