mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 14:13:45 -05:00
cleanup regex
This commit is contained in:
@@ -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_()!'
|
||||||
|
|||||||
Reference in New Issue
Block a user