aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/parse/_lib/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/date-fns/esm/parse/_lib/constants.js')
-rw-r--r--node_modules/date-fns/esm/parse/_lib/constants.js48
1 files changed, 48 insertions, 0 deletions
diff --git a/node_modules/date-fns/esm/parse/_lib/constants.js b/node_modules/date-fns/esm/parse/_lib/constants.js
new file mode 100644
index 0000000..b095afa
--- /dev/null
+++ b/node_modules/date-fns/esm/parse/_lib/constants.js
@@ -0,0 +1,48 @@
+export var numericPatterns = {
+ month: /^(1[0-2]|0?\d)/,
+ // 0 to 12
+ date: /^(3[0-1]|[0-2]?\d)/,
+ // 0 to 31
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
+ // 0 to 366
+ week: /^(5[0-3]|[0-4]?\d)/,
+ // 0 to 53
+ hour23h: /^(2[0-3]|[0-1]?\d)/,
+ // 0 to 23
+ hour24h: /^(2[0-4]|[0-1]?\d)/,
+ // 0 to 24
+ hour11h: /^(1[0-1]|0?\d)/,
+ // 0 to 11
+ hour12h: /^(1[0-2]|0?\d)/,
+ // 0 to 12
+ minute: /^[0-5]?\d/,
+ // 0 to 59
+ second: /^[0-5]?\d/,
+ // 0 to 59
+
+ singleDigit: /^\d/,
+ // 0 to 9
+ twoDigits: /^\d{1,2}/,
+ // 0 to 99
+ threeDigits: /^\d{1,3}/,
+ // 0 to 999
+ fourDigits: /^\d{1,4}/,
+ // 0 to 9999
+
+ anyDigitsSigned: /^-?\d+/,
+ singleDigitSigned: /^-?\d/,
+ // 0 to 9, -0 to -9
+ twoDigitsSigned: /^-?\d{1,2}/,
+ // 0 to 99, -0 to -99
+ threeDigitsSigned: /^-?\d{1,3}/,
+ // 0 to 999, -0 to -999
+ fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
+};
+
+export var timezonePatterns = {
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
+}; \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage