aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-16 01:09:13 +0530
committerArun Isaac2022-06-16 01:09:13 +0530
commit0378b39603440f945f1b2f12d83e04dca82d177d (patch)
tree32fa32c5657da4e9a803196aae015549d7834133
parentd22f62e9e2d0d03bf9deba8dbfa5177a514083d7 (diff)
downloadthogai-0378b39603440f945f1b2f12d83e04dca82d177d.tar.gz
thogai-0378b39603440f945f1b2f12d83e04dca82d177d.tar.lz
thogai-0378b39603440f945f1b2f12d83e04dca82d177d.zip
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.
-rw-r--r--thogai.el3
1 files changed, 1 insertions, 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)))