From 5fb0a995dd2d9cf65ed93fca78502f42a7c3e22d Mon Sep 17 00:00:00 2001 From: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> Date: Sun, 5 May 2019 09:27:55 +0900 Subject: 様々な修正 (#4859) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typo, Redundant code, Syntax error の修正 --- src/misc/aiscript/evaluator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc/aiscript/evaluator.ts') diff --git a/src/misc/aiscript/evaluator.ts b/src/misc/aiscript/evaluator.ts index 6beb320442..78b6acf35c 100644 --- a/src/misc/aiscript/evaluator.ts +++ b/src/misc/aiscript/evaluator.ts @@ -64,7 +64,7 @@ export class ASEvaluator { @autobind private interpolate(str: string, scope: Scope) { - return str.replace(/\{(.+?)\}/g, match => { + return str.replace(/{(.+?)}/g, match => { const v = scope.getState(match.slice(1, -1).trim()); return v == null ? 'NULL' : v.toString(); }); -- cgit v1.2.3-freya