summaryrefslogtreecommitdiff
path: root/webpack
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-20 20:26:38 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-20 20:26:38 +0900
commitb20b9759350f5c0e8b6a668d010c45b4b7338ff0 (patch)
tree5754bd8c5f185febc51c75ae19abb5edbba72ec7 /webpack
parentFix bug (diff)
downloadsharkey-b20b9759350f5c0e8b6a668d010c45b4b7338ff0.tar.gz
sharkey-b20b9759350f5c0e8b6a668d010c45b4b7338ff0.tar.bz2
sharkey-b20b9759350f5c0e8b6a668d010c45b4b7338ff0.zip
Fix bug
Diffstat (limited to 'webpack')
-rw-r--r--webpack/i18n.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/webpack/i18n.ts b/webpack/i18n.ts
index de4d02e9d9..e2cce060e8 100644
--- a/webpack/i18n.ts
+++ b/webpack/i18n.ts
@@ -2,17 +2,12 @@
* Replace i18n texts
*/
-export const pattern = /%i18n:([a-z0-9_\-@\.\!]+?)%/g;
+export const pattern = /%i18n:([a-z0-9_\-@\.]+?)%/g;
export const replacement = (ctx, match, key) => {
const client = '/src/client/app/';
let name = null;
- const shouldEscape = key[0] == '!';
- if (shouldEscape) {
- key = key.substr(1);
- }
-
if (key[0] == '@') {
name = ctx.src.substr(ctx.src.indexOf(client) + client.length);
key = key.substr(1);
@@ -20,5 +15,5 @@ export const replacement = (ctx, match, key) => {
const path = name ? `${name}|${key}` : key;
- return shouldEscape ? `%i18n:!${path}%` : `%i18n:${path}%`;
+ return `%i18n:${path}%`;
};