mirror of
https://github.com/samsonjs/strftime.git
synced 2026-04-27 14:57:37 +00:00
Pass through unrecognized directives
For compatibility with strftime() on Unix, preserve the percent sign for unrecognized directives when appending to resultString.
This commit is contained in:
parent
a133ab1a4e
commit
72a2f418c8
1 changed files with 2 additions and 0 deletions
|
|
@ -494,6 +494,8 @@
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
if (isInScope)
|
||||||
|
resultString += '%';
|
||||||
resultString += format[i];
|
resultString += format[i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue