Allow underscores in SpellList() names.
Johnny C. Lam [09-23-12 - 03:29]
Allow underscores in SpellList() names.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@545 d5049fe3-3747-40f7-a4b5-f36d6801af5f
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", " ")