1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Actually even out brackets

This commit is contained in:
David Baker
2017-10-23 14:02:58 +01:00
parent 8d1aea5b2e
commit 54458f1438

View File

@ -85,7 +85,7 @@ function getFormatStrings(str) {
const formatStrings = new Set();
let match;
while ( (match = formatStringRe.exec(str) ) !== null) {
while ( (match = formatStringRe.exec(str)) !== null ) {
const placeholder = match[1]; // Minus the leading '%'
if (placeholder === '%') continue; // Literal % is %%