From: MORIOKA Tomohiko Date: Thu, 4 Feb 2021 16:40:25 +0000 (+0900) Subject: (www-uri-decode-feature-name): Decode "meta." -> `*'. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=0b80009075cff7c8c0796668f7b7033b6354b265;p=chise%2Ftomoyo-tools.git (www-uri-decode-feature-name): Decode "meta." -> `*'. (www-uri-encode-feature-name): Encode `*' -> `*'. --- diff --git a/chiset-common.el b/chiset-common.el index e13cc36..9dc6296 100644 --- a/chiset-common.el +++ b/chiset-common.el @@ -104,6 +104,11 @@ (est-uri-decode-feature-name-body (substring uri-feature (match-end 0))))) ) + ((string-match "^meta\\." uri-feature) + (intern (format "*%s" + (est-uri-decode-feature-name-body + (substring uri-feature (match-end 0))))) + ) ((string-match "^rep\\." uri-feature) (intern (format "=%s" (est-uri-decode-feature-name-body @@ -225,6 +230,11 @@ (est-uri-encode-feature-name-body (substring feature-name (match-end 0)))) ) + ((string-match "^\\*" feature-name) + (concat "meta." + (est-uri-encode-feature-name-body + (substring feature-name (match-end 0)))) + ) (t (est-uri-encode-feature-name-body feature-name))))