diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script
index fc4976b3f..13cbe542e 100644
--- a/data/magic.mse-game/script
+++ b/data/magic.mse-game/script
@@ -1117,13 +1117,15 @@ super_type_filter := {
split_at_spaces := split_text@(match: " +")
remove_leading_spaces := replace@(match: "^ +", replace: "")
+remove_trailing_soft_tags := replace@(match: ".*?$", replace: "")
+replace_soft_tags := replace@(match: ".*?", replace: " ")
sub_type_filter :=
{
subtype_separator := lang_setting("subtype_separator")
code := lang_setting("code")
- input := replace(input, match: "" + subtype_separator + "", replace: "")
- input := remove_tag(input, tag: "