From 0378b39603440f945f1b2f12d83e04dca82d177d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 16 Jun 2022 01:09:13 +0530 Subject: Remove suffix check for the glue operator. The suffix is already guaranteed by the earlier regular expression match. * thogai.el (thogai-insert-translation): Remove suffix check for the glue operator. --- thogai.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/thogai.el b/thogai.el index 8a8091f..3936bc7 100644 --- a/thogai.el +++ b/thogai.el @@ -260,8 +260,7 @@ External callers should always pass nil as the value." non-first-part-p)) ;; Glue operator ((pred (lambda (str) - (and (string-prefix-p "{&" str) - (string-suffix-p "}" str)))) + (string-prefix-p "{&" str))) (thogai-insert-translation (concat (if thogai-glue "{^}" "") (string-remove-prefix "{&" (string-remove-suffix "}" translation))) -- cgit v1.2.3