mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-14 10:22:26 +08:00
使用github的七牛SDK,配置名称Kodo->Qiniu
This commit is contained in:
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 {
|
||||
|
||||
Reference in New Issue
Block a user