🎨 Improve database table view template column sorting https://github.com/siyuan-note/siyuan/issues/9914

This commit is contained in:
Daniel 2023-12-18 19:17:04 +08:00
parent 8363a3d811
commit fe88ac105d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 20 additions and 0 deletions

View file

@ -18,6 +18,7 @@ package util
import (
"bytes"
"strconv"
"strings"
"unicode"
@ -82,3 +83,8 @@ func RemoveRedundantSpace(str string) string {
}
return buf.String()
}
func IsNumeric(s string) bool {
_, err := strconv.ParseFloat(s, 64)
return err == nil
}