core icon indicating copy to clipboard operation
core copied to clipboard

Add a "float" type for routes

Open paullb514 opened this issue 6 years ago • 2 comments

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.

paullb514 avatar Mar 06 '19 14:03 paullb514

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]+)?$ ?

WanWizard avatar Mar 06 '19 17:03 WanWizard

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Aug 19 '22 21:08 sonarqubecloud[bot]