mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
warn about possible misuse of %:: or %::: modifiers
This commit is contained in:
parent
dcc5d54c1b
commit
8ba1f03a71
1 changed files with 5 additions and 0 deletions
|
|
@ -211,6 +211,11 @@
|
|||
}
|
||||
// ':'
|
||||
else if (currentCharCode === 58) {
|
||||
if (extendedTZ) {
|
||||
if (typeof console !== 'undefined' && typeof console.warn == 'function') {
|
||||
console.warn("[WARNING] detected use of unsupported %:: or %::: modifiers to strftime");
|
||||
}
|
||||
}
|
||||
extendedTZ = true;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue