From a30f6b4cf1e8490b7a64be7ef635d9d16e3db349 Mon Sep 17 00:00:00 2001 From: mrsrec <6236968+mrsrec@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:13:17 +0000 Subject: [PATCH] update comments for new code --- resources/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/main.js b/resources/main.js index 8b70b37..b9a0b07 100644 --- a/resources/main.js +++ b/resources/main.js @@ -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 } } }