Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for regexes (0.21 sec)

  1. tests/test_regex_deprecated_body.py

                "detail": [
                    {
                        "ctx": {"pattern": "^fixedquery$"},
                        "loc": ["body", "q"],
                        "msg": 'string does not match regex "^fixedquery$"',
                        "type": "value_error.str.regex",
                    }
                ]
            }
        )
    
    
    @needs_py310
    def test_openapi_schema():
        client = get_client()
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. tests/test_regex_deprecated_params.py

                "detail": [
                    {
                        "ctx": {"pattern": "^fixedquery$"},
                        "loc": ["query", "q"],
                        "msg": 'string does not match regex "^fixedquery$"',
                        "type": "value_error.str.regex",
                    }
                ]
            }
        )
    
    
    @needs_py310
    def test_openapi_schema():
        client = get_client()
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/main/webapp/css/admin/respond.min.js

    atch(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.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.sty...
    JavaScript
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Oct 08 12:14:13 GMT 2015
    - 4.3K bytes
    - Viewed (0)
  4. docs_src/query_params_str_validations/tutorial004_an_py310_regex.py

    from typing import Annotated
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            str | None, Query(min_length=3, max_length=50, regex="^fixedquery$")
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 366 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() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Mar 06 11:43:16 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  6. logger/sql.go

    	}
    }
    
    // ExplainSQL generate SQL string with given parameters, the generated SQL is expected to be used in logger, execute it might introduce a SQL injection vulnerability
    func ExplainSQL(sql string, numericPlaceholder *regexp.Regexp, escaper string, avars ...interface{}) string {
    	var (
    		convertParams func(interface{}, int)
    		vars          = make([]string, len(avars))
    	)
    
    	convertParams = func(v interface{}, idx int) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java

                // basedirSysProp is non regexp and basedir too
                path = pathPattern.replace("${" + basedirSysProp + "}", basedir);
                path = path.replace("\\", "/");
                // ---------------------------------------------------------------------------------
                // I'm not sure if this last regexp was really intended to disallow the usage of
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/query-params-str-validations.md

    ```Python hl_lines="10"
    {!../../../docs_src/query_params_str_validations/tutorial003.py!}
    ```
    
    ## Adicionando expressões regulares
    
    Você pode definir uma <abbr title="Uma expressão regular, regex ou regexp é uma sequência de caracteres que define um parâmetro de busca para textos.">expressão regular</abbr> que combine com um padrão esperado pelo parâmetro:
    
    ```Python hl_lines="11"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 9.3K bytes
    - Viewed (0)
  9. istioctl/pkg/dashboard/dashboard_test.go

    			WantException:  false,
    		},
    		{ // case 4
    			Args:           strings.Split("envoy --browser=false", " "),
    			ExpectedRegexp: regexp.MustCompile(".*Error: specify a pod or --selector"),
    			WantException:  true,
    		},
    		{ // case 5
    			Args:           strings.Split("envoy --browser=false pod-123456-7890", " "),
    			ExpectedRegexp: regexp.MustCompile("http://localhost:3456"),
    			WantException:  false,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Nov 21 01:17:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  10. misc/go_android_exec/exitcode_test.go

    		t.Errorf("want output %q, got %q", want, got)
    	}
    	if want := 1; want != code {
    		t.Errorf("want exit code %d, got %d", want, code)
    	}
    }
    
    func TestExitCodeMissing(t *testing.T) {
    	var wantErr *regexp.Regexp
    	check := func(text string) {
    		t.Helper()
    		var out strings.Builder
    		f, exitStr := newExitCodeFilter(&out)
    		if want := "exitcode="; want != exitStr {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed May 03 14:54:58 GMT 2023
    - 2.1K bytes
    - Viewed (0)
Back to top