{"modulePath":"github.com/RedAFD/code-core","version":"v1.8.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package validation\n\n## Constants\n\n```go\nconst (\n\t// ErrGitRefName is git reference name error\n\tErrGitRefName = \"GitRefNameError\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\t// GitRefNamePattern is regular expression with unallowed characters in git reference name\n\t// They cannot have ASCII control characters (i.e. bytes whose values are lower than \\040, or \\177 DEL), space, tilde ~, caret ^, or colon : anywhere.\n\t// They cannot have question-mark ?, asterisk *, or open bracket [ anywhere\n\tGitRefNamePattern = regexp.MustCompile(`[\\000-\\037\\177 \\\\~^:?*[]+`)\n)\n```\n\n## Functions\n\n```go\nfunc AddBindingRules()\n```\nAddBindingRules adds additional binding rules\n\n```go\nfunc IsAPIURL(uri string) bool\n```\nIsAPIURL checks if URL is current Gitea instance API URL\n\n```go\nfunc IsValidExternalURL(uri string) bool\n```\nIsValidExternalURL checks if URL is valid external URL\n\n```go\nfunc IsValidURL(uri string) bool\n```\nIsValidURL checks if URL is valid\n\n","path":"github.com/RedAFD/code-core/modules/validation","name":"validation","synopsis":"","isRedistributable":true}
