Syntax : Correct use of regexp

parent 0723d13f
......@@ -13,7 +13,7 @@ function matcher (url, dest) {
// storing them in an array - on each request, if the URL matches one that has
// a function stored for it, the function will be called.
return function (url) {
var m = r(url)
var m = url.match(r);
if (!m) {
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment