mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve database table view template column sorting https://github.com/siyuan-note/siyuan/issues/9914
This commit is contained in:
parent
8363a3d811
commit
fe88ac105d
2 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue