From 5ff9a7f9a9fad7d3e92826755603b6803bb60076 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 22 Jun 2015 16:19:31 -0400 Subject: [PATCH] allow multiline support for translator see: https://github.com/psychobunny/templates.js/issues/36 --- public/src/modules/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/modules/translator.js b/public/src/modules/translator.js index 8d08390741..8030913d76 100644 --- a/public/src/modules/translator.js +++ b/public/src/modules/translator.js @@ -9,7 +9,7 @@ var languages = {}, regexes = { - match: /\[\[.*?\]\]/g, + match: /\[\[[\s\S]*?\]\]/g, split: /[,][\s]*/, replace: /\]+$/ };