Skip to content

Commit

Permalink
update comments for new code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsrec authored Aug 7, 2024
1 parent d8aeb4d commit a30f6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ $(function () {
noticebox[0] = new mw.message("scratch-confirmaccount-username-disallowed").text();
}
else{
if(currentname[0].match("[A-Za-z]")){// Compare first letter to a regex, to check if it starts with a lowercase letter
if(currentname[0].match("[A-Za-z]")){// Compare first letter to a regex, to check if it starts with an uppercase or lowercase letter
noticebox[0] = new mw.message("scratch-confirmaccount-username-warning", currentname[0].toUpperCase() + currentname.slice(1)).text();
// If it'd change, add a notice with the first letter captialized
// If they may want alternative capitalization, add a preview of how it will look once it's approved
}
}
}
Expand Down

0 comments on commit a30f6b4

Please sign in to comment.