Skip to content

Commit

Permalink
fix(urlObject): exclude > from pattern for bare URLs in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Feb 23, 2025
1 parent 05cedb3 commit 9ef9b11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ require("various-textobjs").setup {
},
url = {
patterns = {
[[%l%l%l-://[^%s)%]}"'`]+]], -- exclude ) for md, "'` for strings, } for bibtex
[[%l%l%l+://[^%s)%]}"'`>]+]],
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion lua/various-textobjs/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ local defaultConfig = {
},
url = {
patterns = {
[[%l%l%l+://[^%s)%]}"'`]+]], -- exclude ) for md, "'` for strings, } for bibtex
[[%l%l%l+://[^%s)%]}"'`>]+]],
},
},
},
Expand Down

0 comments on commit 9ef9b11

Please sign in to comment.