1
0
Fork 0

Fix regexp to extract the domain name from a URL

This commit is contained in:
Bram Schoenmakers 2023-12-28 23:21:15 +01:00
parent 94dda4d760
commit 86bc9517c0
Signed by: bram
GPG key ID: 0CCD19DFDC63258F

View file

@ -312,7 +312,7 @@ Returns a formatted string to be displayed by the shell."
"://"))
(? "www.")
;; the domain name
(group (seq (+ (not ".")) "." (+ alpha)))))
(group (seq (+ (not "/"))))))
url)
(if-let ((domain-name (match-string 1 url)))