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 6c2dfed commit c4c1104Copy full SHA for c4c1104
src/pages/partials/body.handlebars
@@ -107,8 +107,8 @@
107
<script>
108
function validateInput() {
109
const inputField = document.getElementById("username");
110
- if (inputField.value.trim() === "") {
111
- alert("Username cannot be empty or contain only spaces");
+ if (/\s/.test(inputField.value)) {
+ alert("Username cannot contain any spaces.");
112
return false;
113
}
114
showLoader();
0 commit comments