This commit is contained in:
0xmuralik 2023-03-13 16:56:29 +05:30
parent ae81ff9c57
commit db034c2e43
3 changed files with 2 additions and 5 deletions

View File

@ -34,7 +34,5 @@ jobs:
VALIDATE_OPENAPI: false VALIDATE_OPENAPI: false
VALIDATE_JSCPD: false VALIDATE_JSCPD: false
VALIDATE_GO: false VALIDATE_GO: false
VALIDATE_BASH: false
VALIDATE_DOCKER: false
DEFAULT_BRANCH: "main" DEFAULT_BRANCH: "main"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -3048,7 +3048,7 @@
}) })
}, t.getCommonExtensions = function(e) { }, t.getCommonExtensions = function(e) {
return e.filter(function(e, t) { return e.filter(function(e, t) {
return /^pattern|maxLength|minLength|maximum|minimum/.test(t) return /^pattern$|^maxLength$|^minLength$|^maximum$|^minimum$/.test(t)
}) })
} }
}).call(t, n(54).Buffer) }).call(t, n(54).Buffer)

View File

@ -331,8 +331,7 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) { // nosemgrep
appCfg.JSONRPC.Address = cfg.JSONRPCAddress appCfg.JSONRPC.Address = cfg.JSONRPCAddress
} else { } else {
_, jsonRPCPort, err := server.FreeTCPAddr() _, jsonRPCPort, err := server.FreeTCPAddr()
if err != nil { if err != nil { // nosemgrep
return nil, err // nosemgrep return nil, err // nosemgrep
} }
appCfg.JSONRPC.Address = fmt.Sprintf("127.0.0.1:%s", jsonRPCPort) appCfg.JSONRPC.Address = fmt.Sprintf("127.0.0.1:%s", jsonRPCPort)