Permalink
Browse files

fix tile z/x/y regex - closes #90

  • Loading branch information...
1 parent c69263f commit dfb87e826078d1a4cbf1d23b384e6fa0aeec2ed2 Dane Springmeyer committed Nov 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/utils/tile.js
@@ -2,7 +2,7 @@ var url = require('url');
module.exports.parseXYZ = function(req, TMS_SCHEME, callback) {
- matches = req.url.match(/(\d+)\/(\d+)\/(\d+)/g);
+ var matches = req.url.match(/(\d+)/g);
if (matches && matches.length == 3) {
try {
var x = parseInt(matches[1], 10);

0 comments on commit dfb87e8

Please sign in to comment.