mirror of
https://git.um-react.app/um/cli.git
synced 2026-11-25 23:06:58 +00:00
refactor: improve mmkv logic
This commit is contained in:
1 parent
92ad51402e
commit
9b0455b0fd
10 files changed
+216
-160
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package utils
|
||||
|
||||
import "golang.org/x/text/unicode/norm"
|
||||
|
||||
// normalizeUnicode normalizes unicode string to NFC.
|
||||
// since macOS may change some characters in the file name.
|
||||
// e.g. "ぜ"(e3 81 9c) -> "ぜ"(e3 81 9b e3 82 99)
|
||||
func NormalizeUnicode(str string) string {
|
||||
return norm.NFC.String(str)
|
||||
}
|
||||
Reference in new issue
Block a user