Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(ui): allow uppercase letters in username on profile settings (#1572)

Andreas Polzer7a2e2475f72c
diff --git a/ui/src/pages/Users/Settings/Profile/index.tsx b/ui/src/pages/Users/Settings/Profile/index.tsx
index 62bd6fb8..d695c553 100644
--- a/ui/src/pages/Users/Settings/Profile/index.tsx
+++ b/ui/src/pages/Users/Settings/Profile/index.tsx
@@ -177,7 +177,7 @@ const Index: React.FC = () => {
isInvalid: true,
errorMsg: t('username.msg_range'),
};
- } else if (/[^a-z0-9\-._]/.test(username.value)) {
+ } else if (/[^a-z0-9\-._]/i.test(username.value)) {
bol = false;
formData.username = {
value: username.value,