Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update username validate config (#209)

boojack50fa560d4a54
diff --git a/web/src/components/Settings/MyAccountSection.tsx b/web/src/components/Settings/MyAccountSection.tsx
index 801bcd80b..189ffe603 100644
--- a/web/src/components/Settings/MyAccountSection.tsx
+++ b/web/src/components/Settings/MyAccountSection.tsx
@@ -9,10 +9,10 @@ import showChangePasswordDialog from "../ChangePasswordDialog";
import "../../less/settings/my-account-section.less";
const validateConfig: ValidatorConfig = {
- minLength: 4,
+ minLength: 1,
maxLength: 24,
noSpace: true,
- noChinese: true,
+ noChinese: false,
};
const MyAccountSection = () => {