(riece-make-interval-regexp): Simplified.
authorDaiki Ueno <ueno@unixuser.org>
Mon, 27 Oct 2003 12:55:43 +0000 (12:55 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Mon, 27 Oct 2003 12:55:43 +0000 (12:55 +0000)
lisp/riece-compat.el

index 25d544e..2bc6469 100644 (file)
@@ -62,8 +62,8 @@
 (if (string-match "0\\{0\\}" "")
     (defun riece-make-interval-regexp (regexp min &optional max)
       (if max
-         (concat regexp (format "\\{%d,%d\\}" min max))
-       (concat regexp (format "\\{%d\\}" min))))
+         (format "%s\\{%d,%d\\}" regexp min max)
+       (format "%s\\{%d\\}" regexp min)))
   ;; Emacs 20.7 doesn't support \{...\} in regexps.
   (defun riece-make-interval-regexp (regexp min &optional max)
     (mapconcat #'identity