Skip to content

Commit

Permalink
perl: improve https regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
sontungexpt committed Sep 21, 2023
1 parent 26b6dc8 commit 7413167
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/url-open/modules/patterns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ M.DEEP_PATTERN =
-- Cask Formula: ['cask ["]([^%s]*)["]']
--
M.PATTERNS = {
["(https?://[%w-_%.]+%.%w[%w-_%.%%%?%.:/+=&%[%]#]*)"] = "", --- url http(s)
["(https?://[%w-_%.]+%.%w[%w-_%.%%%?%.:/+=&%%[%]#<>]*)"] = "", --- url http(s)
-- ["(https?://[%w-_%.]+%.%w[%w-_%.%%%?%.:/+=&%[%]#]*)"] = "", --- url http(s)
-- ['["]([^%s]*)["]:'] = "https://www.npmjs.com/package/", --- npm package
['["]([^%s]*)["]:%s*"[^"]*%d[%d%.]*"'] = {
prefix = "https://www.npmjs.com/package/",
Expand Down

0 comments on commit 7413167

Please sign in to comment.