mirror of
https://github.com/documize/community.git
synced 2025-08-04 21:15:24 +02:00
go dep
Migrated from plain /vendor to go dep
This commit is contained in:
parent
0262763c95
commit
fd693f4ff4
957 changed files with 36866 additions and 177595 deletions
2
vendor/github.com/shurcooL/sanitized_anchor_name/main.go
generated
vendored
2
vendor/github.com/shurcooL/sanitized_anchor_name/main.go
generated
vendored
|
@ -13,7 +13,7 @@ import "unicode"
|
|||
func Create(text string) string {
|
||||
var anchorName []rune
|
||||
var futureDash = false
|
||||
for _, r := range []rune(text) {
|
||||
for _, r := range text {
|
||||
switch {
|
||||
case unicode.IsLetter(r) || unicode.IsNumber(r):
|
||||
if futureDash && len(anchorName) > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue