From 2c976f6941fdc2abf4be5b361830eda36086cb90 Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Sun, 19 Jan 2025 08:25:41 -0800 Subject: [PATCH] Restore the old behavior only trigger quickphrase on certain prefix for domain name --- im/pinyin/pinyin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/im/pinyin/pinyin.h b/im/pinyin/pinyin.h index 702cc86..954d043 100644 --- a/im/pinyin/pinyin.h +++ b/im/pinyin/pinyin.h @@ -292,7 +292,8 @@ FCITX_CONFIGURATION( this, "QuickPhraseTriggerRegex", _("Regular expression to trigger quick phrase"), - {".(\\.|/|@)$", "^(http|https|ftp|telnet|mailto):"}, + {".(/|@)$", "^(www|bbs|forum|mail|bbs)\\.", + "^(http|https|ftp|telnet|mailto):"}, {}, {}, {_("Enter quickphrase mode when current input matches any regular "