emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/pyim dc2dfc5 2/3: * pyim.el (pyim-cregexp-build-1): Fix


From: ELPA Syncer
Subject: [elpa] externals/pyim dc2dfc5 2/3: * pyim.el (pyim-cregexp-build-1): Fix ab\\|ab\\|... problem.
Date: Fri, 12 Mar 2021 00:57:09 -0500 (EST)

branch: externals/pyim
commit dc2dfc5674eea1cf702559e488fac199e4275c0e
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    * pyim.el (pyim-cregexp-build-1): Fix ab\\|ab\\|... problem.
---
 pyim.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pyim.el b/pyim.el
index a1e9b98..fac62d1 100644
--- a/pyim.el
+++ b/pyim.el
@@ -3902,7 +3902,9 @@ PUNCT-LIST 格式类似:
                               "\\|")))
                 (regexp
                  (if (> (length regexp) 0)
-                     (concat string "\\|" string1 "\\|" regexp)
+                     (if (equal string string1)
+                         (concat string "\\|" regexp)
+                       (concat string "\\|" string1 "\\|" regexp))
                    string)))
            (format "\\(?:%s\\)" regexp))))
      lst "")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]