Upstatement / routes

Simple routing for WordPress
188 stars 38 forks source link

Route /download/1.5.1 doesn't work with decimal numbers #45

Open kangarko opened 1 year ago

kangarko commented 1 year ago

This code:

Routes::map('blog/:name', function($params) {
    die("Name: " . $params['name']);
});

Will work with blog/hey and blog/1 but not with blog/1.5.1

How can I fix this please?