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:
Kevin Jin 2015-09-27 10:41:58 -04:00
parent a133ab1a4e
commit 72a2f418c8

View file

@ -494,6 +494,8 @@
break;
default:
if (isInScope)
resultString += '%';
resultString += format[i];
break;
}