use a-zA-Z0-9

the alphanum class matches multibyte characters, and matching only
alphanumeric ASCII is what is desired here
This commit is contained in:
Mark Oteiza 2016-04-30 22:15:24 -04:00
parent 4121a9a37b
commit cd22a2c250

View File

@ -199,7 +199,7 @@
(defconst systemd-autoload-regexp (defconst systemd-autoload-regexp
(eval-when-compile (eval-when-compile
(rx (+? (or alphanumeric (any "-_.@\\"))) "." (rx (+? (any "a-zA-Z0-9-_.@\\")) "."
(or "automount" "busname" "mount" "service" "slice" (or "automount" "busname" "mount" "service" "slice"
"socket" "swap" "target" "timer" "link" "netdev" "network") "socket" "swap" "target" "timer" "link" "netdev" "network")
string-end)) string-end))
@ -208,7 +208,7 @@
(defconst systemd-tempfn-autoload-regexp (defconst systemd-tempfn-autoload-regexp
(eval-when-compile (eval-when-compile
(rx ".#" (rx ".#"
(or (and (+? (or alphanumeric (any "-_.@\\"))) "." (or (and (+? (any "a-zA-Z0-9-_.@\\")) "."
(or "automount" "busname" "mount" "service" "slice" (or "automount" "busname" "mount" "service" "slice"
"socket" "swap" "target" "timer" "link" "netdev" "network")) "socket" "swap" "target" "timer" "link" "netdev" "network"))
"override.conf") "override.conf")
@ -218,7 +218,7 @@
(defconst systemd-dropin-autoload-regexp (defconst systemd-dropin-autoload-regexp
(eval-when-compile (eval-when-compile
(rx "/systemd/" (+? anything) ".d/" (rx "/systemd/" (+? anything) ".d/"
(+? (or alphanumeric (any "-_.@\\"))) ".conf" string-end)) (+? (any "a-zA-Z0-9-_.@\\")) ".conf" string-end))
"Regexp for dropin config file buffers in which to autoload `systemd-mode'.") "Regexp for dropin config file buffers in which to autoload `systemd-mode'.")
(defun systemd-get-value (start) (defun systemd-get-value (start)