core
core copied to clipboard
Add a "float" type for routes
It would be nice to have a "float" type for routing. The "num" doesn't allow decimal points and it needn't be an entire segment that can grab everything.
It would, yes. But that isn't really a regex for a float, that would also match ",.,.,.,.".
A better one would be something like: ^[-+]?[0-9]*[\.,]?[0-9]+([eE][-+]?[0-9]+)?$ ?







