Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (9 sloc) 0.351 kb
require('helper')
local url = require('url')
local path = '/somepath?test=bar&ponies=foo'
local parsed = url.parse(path)
assert(parsed.pathname == '/somepath')
assert(parsed.query == 'test=bar&ponies=foo')
local parsed = url.parse(path, true)
assert(parsed.pathname == '/somepath')
assert(deep_equal(parsed.query, {test = 'bar', ponies = 'foo'}))
Jump to Line
Something went wrong with that request. Please try again.