Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
[modules] fix format not formatting named placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmorDarks committed Sep 29, 2017
1 parent bcdb0ef commit e8e2d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
}

0 comments on commit e8e2d4e

Please sign in to comment.