Skip to content

Commit

Permalink
chore: add deprecation info for charwise.urlPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 4, 2024
1 parent f81796f commit eaa2eba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lua/various-textobjs/charwise-textobjs.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local M = {}
--------------------------------------------------------------------------------

-- DEPRECATION (2024-12-04)
setmetatable(M, {
__index = function(_, key)
if key == "urlPattern" then
local msg =
'`require("various-textobjs.charwise-textobjs").urlPattern` is deprecated. Just use this pattern instead: "%l%l%l-://%S+"'
require("various-textobjs.utils").warn(msg)
end
end,
})

--------------------------------------------------------------------------------
return M

0 comments on commit eaa2eba

Please sign in to comment.