From 008af70cf05ccdf1ed15dc24de8dbfbd3a4a2090 Mon Sep 17 00:00:00 2001 From: CallumDev Date: Wed, 21 Sep 2022 21:35:02 +0930 Subject: [PATCH] Whitelist quote as sprintf flag for current locale thousands separator --- .../CoreLib/StringLib/KopiLua_StrLib.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WattleScript.Interpreter/CoreLib/StringLib/KopiLua_StrLib.cs b/src/WattleScript.Interpreter/CoreLib/StringLib/KopiLua_StrLib.cs index 49518ea8..f6f28504 100644 --- a/src/WattleScript.Interpreter/CoreLib/StringLib/KopiLua_StrLib.cs +++ b/src/WattleScript.Interpreter/CoreLib/StringLib/KopiLua_StrLib.cs @@ -794,7 +794,7 @@ public static int str_gsub(LuaState L) /* maximum size of each formatted item (> len(format('%99.99f', -1e308))) */ public const int MAX_ITEM = 512; /* valid flags in a format specification */ - public const string FLAGS = "-+ #0"; + public const string FLAGS = "-+ #0'"; /* ** maximum size of each format specification (such as '%-099.99d') ** (+10 accounts for %99.99x plus margin of error)