From 7bf2db5d1737f21190f15dcd6fa6fc4e2e1c2d02 Mon Sep 17 00:00:00 2001 From: coppro Date: Mon, 2 Feb 2009 05:26:27 +0000 Subject: [PATCH] Modified the "~ is color" script to work with new spellcheck tags (changed a ? to a *). Surprised no bug report yet. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1371 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic.mse-game/script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index 0ca75002..a2b12004 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -121,7 +121,7 @@ land_to_color := { text_to_color := { # Note: running filter_text is quite slow, do a quick 'contains' check first if contains(match: card_name) then ( - text := filter_text(match: "is (colorless|all colors|((blue|white|green|red|black)((,|,? and) (blue|white|green|red|black))*))", in_context: regex_escape(card_name)+"()? \\.") + text := filter_text(match: "is (colorless|all colors|((blue|white|green|red|black)((,|,? and) (blue|white|green|red|black))*))", in_context: regex_escape(card_name)+"()* \\.") if text != "" then ( if contains(text, match: "all colors") then ( colors := "WUBRG"