Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
URL match regex in example tile.js not matching #90
(line 5) matches = req.url.match(/(\d+)/(\d+)/(\d+)/g);
This is not working for me providing an url such as: http://host.com/1/1/1 (please correct me if I'm missing something)
It works perfectly with query string: http://host.com/?x=1&y=1&z=1
I've fixed it changing the expression to:
matches = req.url.match(/(\d+)/g);