Committing with require.
This commit is contained in:
parent
bf738a0336
commit
694edcc3c1
13 changed files with 153 additions and 80 deletions
|
@ -125,7 +125,7 @@ function parse(url, default)
|
|||
-- initialize default parameters
|
||||
local parsed = default or {}
|
||||
-- empty url is parsed to nil
|
||||
if not url or url == "" then return nil end
|
||||
if not url or url == "" then return nil, "invalid url" end
|
||||
-- remove whitespace
|
||||
-- url = string.gsub(url, "%s", "")
|
||||
-- get fragment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue