cleanup regex

This commit is contained in:
Nathaniel Landau
2021-08-19 17:12:47 -04:00
parent 58cac3ea3b
commit 24dfe4b97f

View File

@@ -1,3 +1,4 @@
_monthToNumber_() { _monthToNumber_() {
# DESC: Convert a month name to a number # DESC: Convert a month name to a number
# ARGS: None # ARGS: None
@@ -74,6 +75,8 @@ _parseDate_() {
# * DD MM YY * MM DD YY # * DD MM YY * MM DD YY
# TODO: Impelemt the following date formats # TODO: Impelemt the following date formats
# * MMDDYY * YYMMDD * mon-DD-YY # * MMDDYY * YYMMDD * mon-DD-YY
# TODO: Simplify and reduce the number of regex checks
[[ $# -eq 0 ]] && { [[ $# -eq 0 ]] && {
error 'Missing required argument to _parseDate_()!' error 'Missing required argument to _parseDate_()!'