You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-06 10:22:45 +03:00
Actually even out brackets
This commit is contained in:
@@ -85,7 +85,7 @@ function getFormatStrings(str) {
|
|||||||
const formatStrings = new Set();
|
const formatStrings = new Set();
|
||||||
|
|
||||||
let match;
|
let match;
|
||||||
while ( (match = formatStringRe.exec(str) ) !== null) {
|
while ( (match = formatStringRe.exec(str)) !== null ) {
|
||||||
const placeholder = match[1]; // Minus the leading '%'
|
const placeholder = match[1]; // Minus the leading '%'
|
||||||
if (placeholder === '%') continue; // Literal % is %%
|
if (placeholder === '%') continue; // Literal % is %%
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user