mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +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;
|
||||
|
||||
default:
|
||||
if (isInScope)
|
||||
resultString += '%';
|
||||
resultString += format[i];
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue