Skip to content

Commit

Permalink
Change: (org-web-tools--get-first-url) Use string-match-p
Browse files Browse the repository at this point in the history
  • Loading branch information
alphapapa committed Dec 13, 2023
1 parent 544b000 commit 2504583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org-web-tools.el
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ HTML."
(defun org-web-tools--get-first-url ()
"Return URL in clipboard, or first URL in the `kill-ring', or nil if none."
(cl-loop for item in (cons (current-kill 0) kill-ring)
when (and item (string-match (rx bol "http" (optional "s") "://") item))
when (and item (string-match-p (rx bol "http" (optional "s") "://") item))
return item))

(declare-function org-element-property "org-element")
Expand Down

0 comments on commit 2504583

Please sign in to comment.