From: MORIOKA Tomohiko Date: Sun, 19 Jun 2022 04:15:15 +0000 (+0900) Subject: (www-format-encode-string): Format &A-SW-JIGUGE[45]-ddddd; X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b6c8c83eb5171c96aea07f67533cdac2b0bbe66;p=chise%2Fest.git (www-format-encode-string): Format &A-SW-JIGUGE[45]-ddddd; --- diff --git a/cwiki-common.el b/cwiki-common.el index 5415ca6..f4e7e6f 100644 --- a/cwiki-common.el +++ b/cwiki-common.el @@ -1114,9 +1114,9 @@ style=\"vertical-align:middle; width: auto; max-height: 60px\">" t 'literal)) (goto-char (point-min)) - (while (re-search-forward "&SW-JIGUGE\\([45]?\\)-\\([0-9]+\\);" nil t) - (setq subcode (match-string 1) - code (string-to-int (match-string 2))) + (while (re-search-forward "&\\(A-\\)?SW-JIGUGE\\([45]?\\)-\\([0-9]+\\);" nil t) + (setq subcode (match-string 2) + code (string-to-int (match-string 3))) (setq plane (if (string= subcode "") "5"