mirror of
https://github.com/samsonjs/strftime.git
synced 2026-04-27 14:57:37 +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) {
|
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;
|
extendedTZ = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue