Skip to content

Loading…

URL match regex in example tile.js not matching #90

Closed
txau opened this Issue · 1 comment

2 participants

@txau

(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);

@springmeyer
Mapnik member

okay, thanks I will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.