We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c0aae7 commit 36d80cfCopy full SHA for 36d80cf
src/api/addServer.ts
@@ -17,8 +17,8 @@ export async function addServer(
17
if (serverNames.filter((server) => server.name === value).length) {
18
return "Name already exists";
19
}
20
- if (!value.match(/^[a-z0-9-._~]+$/)) {
21
- return "Can only contain a-z, 0-9 and punctuation -._~";
+ if (!value.match(/^[a-z0-9-_~]+$/)) {
+ return "Can only contain a-z, 0-9 and punctuation -_~";
22
23
return null;
24
},
0 commit comments