warn about possible misuse of %:: or %::: modifiers

This commit is contained in:
Sami Samhuri 2015-03-16 18:02:34 -07:00
parent dcc5d54c1b
commit 8ba1f03a71

View file

@ -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;
}