fix(qmc): use unicode normalize to match filename #47

Merged
um-dev merged 3 commits from fix/unicode-norm into master 2022-12-05 03:24:40 +00:00
Showing only changes of commit 6f033af336 - Show all commits

View File

@ -60,13 +60,6 @@ func readKeyFromMMKV(file string, logger *zap.Logger) ([]byte, error) {
return normalizeUnicode(name) return normalizeUnicode(name)
}) })
logger.Debug("filename",
zap.String("partName", partName),
zap.Int("partName", len(partName)),
zap.String("fileNames", fileNames[0]),
zap.Int("fileNames", len(fileNames[0])),
)
for _, key := range fileNames { // fallback: match filename only for _, key := range fileNames { // fallback: match filename only
if key != partName { if key != partName {
continue continue