Skip to content

Commit

Permalink
chore: add : as possible char for url pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Jul 14, 2024
1 parent 3022dba commit c2fd8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/various-textobjs/charwise-textobjs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ end
-- make URL pattern available for external use
-- INFO mastodon URLs contain `@`, neovim docs urls can contain a `'`, special
-- urls like https://docs.rs/regex/1.*/regex/#syntax can have a `*`
M.urlPattern = "%l%l%l-://[A-Za-z0-9_%-/.#%%=?&'@+*]+"
M.urlPattern = "%l%l%l-://[A-Za-z0-9_%-/.#%%=?&'@+*:]+"
function M.url() M.selectTextobj(M.urlPattern, "outer", config.lookForwardBig) end

---see #26
Expand Down

0 comments on commit c2fd8bf

Please sign in to comment.