diff options
author | 6543 <6543@obermui.de> | 2021-01-28 19:08:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 19:08:11 +0100 |
commit | 99b7af6fc89687ee74ca938b9a3f07bf8acc79dd (patch) | |
tree | 50cc0c817c23fc54c66ca50b1d0eafea960bbebc /modules/base/tool.go | |
parent | d1353e1f7c9bf648cd72bd9731b4f843b0dc9a86 (diff) | |
download | gitea-99b7af6fc89687ee74ca938b9a3f07bf8acc79dd.tar.gz gitea-99b7af6fc89687ee74ca938b9a3f07bf8acc79dd.zip |
Add some Unit-Tests (#14500)
* fix url
* modules/auth/pa: coverage: 40#.0%
* modules/base coverage: 67.6% -> 89.9%
* modules/cache coverage: 0% -> 12.0%
* modules/convert coverage: 27.1% -> 29.7%
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r-- | modules/base/tool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go index 53339d6449..d721d47e9d 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -270,7 +270,7 @@ func Int64sContains(intsSlice []int64, a int64) bool { } // IsLetter reports whether the rune is a letter (category L). -// https://github.com/golang/go/blob/master/src/go/scanner/scanner.go#L257 +// https://github.com/golang/go/blob/c3b4918/src/go/scanner/scanner.go#L342 func IsLetter(ch rune) bool { return 'a' <= ch && ch <= 'z' || 'A' <= ch && ch <= 'Z' || ch == '_' || ch >= 0x80 && unicode.IsLetter(ch) } |