Simplify regexp in `denote-link-ol-follow'

This commit is contained in:
alvmts 2026-01-01 02:10:43 -05:00 committed by GitHub
parent 54494edf5a
commit 7f91907a79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6849,7 +6849,7 @@ query of file contents or file names (see the commands
Uses the function `denote-directory' to establish the path to the file."
(if-let* ((match (denote-link--ol-resolve-link-to-target link))
(_ (file-exists-p (string-trim-right match ":\\{2\\}.*"))))
(_ (file-exists-p (string-trim-right match "::.*"))))
(org-link-open-as-file match nil)
(denote--act-on-query-link match)))