From 7d8dbbc07e31a99b2b12b400f69f7d93a7de98de Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sun, 23 Sep 2012 03:29:37 +0000 Subject: [PATCH] Allow underscores in SpellList() names. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@545 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleCompile.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvaleCompile.lua b/OvaleCompile.lua index d1a3abe..2ee03dc 100644 --- a/OvaleCompile.lua +++ b/OvaleCompile.lua @@ -560,7 +560,7 @@ function OvaleCompile:Compile(text) text = string.gsub(text, "SpellDamageDebuff%s*%((.-)%)", ParseSpellDamageDebuff) text = string.gsub(text, "SpellInfo%s*%((.-)%)", ParseSpellInfo) text = string.gsub(text, "ScoreSpells%s*%((.-)%)", ParseScoreSpells) - text = string.gsub(text, "SpellList%s*%(%s*(%w+)%s*(.-)%)", ParseSpellList) + text = string.gsub(text, "SpellList%s*%(%s*([%w_]+)%s*(.-)%)", ParseSpellList) -- On vire les espaces en trop text = string.gsub(text, "\n", " ") -- 1.7.9.5