(www-format-encode-string): Format &A-SW-JIGUGE[45]-ddddd;
authorMORIOKA Tomohiko <tomo.git@chise.org>
Sun, 19 Jun 2022 04:15:15 +0000 (13:15 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Mon, 17 Oct 2022 08:33:56 +0000 (17:33 +0900)
cwiki-common.el

index 5415ca6..f4e7e6f 100644 (file)
@@ -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"