diff --git a/modules/format.js b/modules/format.js index e0b728a6..4ae13a4e 100644 --- a/modules/format.js +++ b/modules/format.js @@ -17,6 +17,6 @@ module.exports = (input, ...placeholders) => { return traverse( input, (tmpl) => useVsprintf ? vsprintf(tmpl, placeholder) : sprintf(tmpl, ...placeholders), - (string) => /%([\w\n+-]|\.\n|[\w\n_]')/.test(string) + (string) => /%([\w\n+-]|\.\n|[\w\n_]'|\([\w\n])/.test(string) ) }