From 018b6a6c6b1236cb38690272a4d62b0701bd96bf Mon Sep 17 00:00:00 2001 From: pichoro Date: Sun, 4 Jan 2009 20:25:37 +0000 Subject: [PATCH] Put ~ back in text_filter. Why? Because I believe that 99.9% of users won't realize to update their automatic text replacements, and will report an error that the tilde no longer functions. Is it possible to just have automatic text replacements update when new ones are added, while keeping custom ones? git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1294 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic.mse-game/auto_replace | 5 +---- data/magic.mse-game/script | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/data/magic.mse-game/auto_replace b/data/magic.mse-game/auto_replace index 1a57018c..7b816359 100644 --- a/data/magic.mse-game/auto_replace +++ b/data/magic.mse-game/auto_replace @@ -1,4 +1,4 @@ - + ############################################################## Auto replace # Do we need categories? @@ -34,9 +34,6 @@ auto replace: auto replace: match: @ replace: LEGENDNAME -auto replace: - match: ~ - replace: CARDNAME auto replace: match: ~THIS~ replace: CARDNAME diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index 90fa2aac..143065a1 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -394,7 +394,7 @@ text_filter := ) + # step 3a : expand shortcut word CARDNAME replace@( - match: "CARDNAME", + match: "~|CARDNAME", in_context: "(^|[[:space:]]|\\()", # TODO: Allow any punctuation before replace: "" ) +