Fixing type statistics in Magic - had a minor error.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1502 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
pichoro
2010-08-15 02:15:52 +00:00
parent 1bd866268c
commit af4a13ce96
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -625,8 +625,8 @@ line_count := split_text@(match:"\n+",include_empty:false) + length
#Remove supertypes or types to look at parts of the super_type field by themselves.
remove_supertype := replace@(match: "(Legendary|Basic|Snow|World|Tribal|Token)", replace: "")+
replace@(match: "^[ ]", replace: "")+
replace@(match: "[ ]$", replace: "")
replace@(match: "[ ]+", in_context: "^<match>", replace: "")+
replace@(match: "[ ]+", in_context: "<match>$", replace: "")
remove_type := replace@(match: "(Artifact|Creature|Enchantment|Instant|Land|Planeswalker|Sorcery)", replace: "")+
replace@(match: "^[ ]", replace: "")+
replace@(match: "[ ]$", replace: "")
replace@(match: "[ ]+", in_context: "^<match>", replace: "")+
replace@(match: "[ ]+", in_context: "<match>$", replace: "")