float-values: Fix bug on strings containing fordidden values
The rule correctly reports number values like `.1`, `1e2`, `.NaN` and `.Inf`, but it also reported false positives on strings like `.1two3`, `1e2a`, `.NaNa` and `.Infinit∞`. The regexps need to end with an end delimiter (`$`) otherwise longer strings can be matched too. Fixes https://github.com/adrienverge/yamllint/issues/495pull/484/head
parent
e8391de711
commit
008db4aa09
Loading…
Reference in New Issue