chore(user/mw_create_redirect_day_month.sh):Add TODO comment
authorSteven Baltakatei Sandoval <baltakatei@gmail.com>
Tue, 11 Apr 2023 17:19:47 +0000 (17:19 +0000)
committerSteven Baltakatei Sandoval <baltakatei@gmail.com>
Tue, 11 Apr 2023 17:19:47 +0000 (17:19 +0000)
user/mw_create_redirect_day_month.sh

index 1c4f9fe1044ddf8b5cf8401e8e31785d2a13249e..8d788c17aed4d928ee96e3921483e363144a5614 100755 (executable)
@@ -3,7 +3,7 @@
 # Usage: script.sh [year]
 # Input: arg1: year (string)
 # Output: none
-# Version: 0.0.1
+# Version: 0.1.0 (TODO: Support expanded year formats (i.e. Â±YYYYYY-mm-dd)
 
 # Example: Running 'mw_create_redirect_day_month.sh 2022' creates
 #   directory 'wikicode' in working directory. It then populates it
@@ -71,7 +71,7 @@ main() {
     if [[ $# -ne 1 ]]; then die "FATAL:Invalid number of arguments:$#"; fi;
     
     ## check year
-    pattern='^[0-9]{4}$';    
+    pattern='^[0-9]{4}$';
     if [[ ! $year =~ $pattern ]]; then die "FATAL:Not a 4-digit year."; fi;
     if [[ ! $year -gt 1583 ]]; then die "FATAL:Not a gregorian calendar year."; fi;