Fix regexp to extract the domain name from a URL
This commit is contained in:
parent
94dda4d760
commit
86bc9517c0
1 changed files with 1 additions and 1 deletions
2
kagi.el
2
kagi.el
|
@ -312,7 +312,7 @@ Returns a formatted string to be displayed by the shell."
|
||||||
"://"))
|
"://"))
|
||||||
(? "www.")
|
(? "www.")
|
||||||
;; the domain name
|
;; the domain name
|
||||||
(group (seq (+ (not ".")) "." (+ alpha)))))
|
(group (seq (+ (not "/"))))))
|
||||||
url)
|
url)
|
||||||
|
|
||||||
(if-let ((domain-name (match-string 1 url)))
|
(if-let ((domain-name (match-string 1 url)))
|
||||||
|
|
Loading…
Reference in a new issue