Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MatchString (0.12 sec)

  1. internal/event/target/postgresql.go

    }
    
    var errInvalidPsqlTablename = errors.New("invalid PostgreSQL table")
    
    func validatePsqlTableName(name string) error {
    	// check for quoted string (string may not contain a quote)
    	if match, err := regexp.MatchString("^\"[^\"]+\"$", name); err != nil {
    		return err
    	} else if match {
    		return nil
    	}
    
    	// normalize the name to letters, digits, _ or $
    	valid := true
    	cleaned := strings.Map(func(r rune) rune {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. internal/config/config.go

    	}
    	if region != "" {
    		if !validRegionRegex.MatchString(region) {
    			err = Errorf(
    				"region '%s' is invalid, expected simple characters such as [us-east-1, myregion...]",
    				region)
    			return
    		}
    		s.region = region
    	}
    
    	name := env.Get(EnvSiteName, siteKV.Get(NameKey))
    	if name != "" {
    		if !validSiteNameRegex.MatchString(name) {
    			err = Errorf(
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  3. src/cmd/api/main_test.go

    			// - 'go list std' does not include commands, which cannot be
    			//   imported anyway.
    			if ip := pkg.ImportPath; pkg.Standard && ip != "unsafe" && !strings.HasPrefix(ip, "vendor/") && !internalPkg.MatchString(ip) {
    				stdPackages = append(stdPackages, ip)
    			}
    			importDir[pkg.ImportPath] = pkg.Dir
    			if len(pkg.ImportMap) > 0 {
    				importMap[pkg.Dir] = make(map[string]string, len(pkg.ImportMap))
    			}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  4. docs/debugging/xl-meta/main.go

    							if b3, err := json.Marshal(tmp); err == nil {
    								b2 = b3
    							}
    						}
    						toPrint = append(toPrint, fmt.Sprintf("\t%s: %s", string(b), string(b2)))
    					} else if c.Bool("combine") && isPart.MatchString(file.Name) {
    						// name := isPart.FindString(file.Name)
    						name := strings.ReplaceAll(file.Name, ":", "_")
    						r, err := file.Open()
    						if err != nil {
    							return err
    						}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top