diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-29 21:32:00 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-29 21:32:00 -0500 |
| commit | 5b9cbecb01b3ac11f553a62d3ee6135a789943a7 (patch) | |
| tree | 9087a907ba7bc3eee60242ce55a0d9ac911dd781 | |
| parent | Revise docstrings, add `wild` to `has` method (diff) | |
| download | config-file-5b9cbecb01b3ac11f553a62d3ee6135a789943a7.zip | |
Remove duplication from `can_be_parsed_as_float`
| -rw-r--r-- | config_file/parsers/parse_value.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config_file/parsers/parse_value.py b/config_file/parsers/parse_value.py index 26bdf2e..5f6dfe3 100644 --- a/config_file/parsers/parse_value.py +++ b/config_file/parsers/parse_value.py @@ -75,7 +75,7 @@ def can_be_parsed_as_float(value) -> bool: return False if value.startswith("-"): - return bool(re.match(FLOAT_REGEX, value[1:])) + value = value[1:] return bool(re.match(FLOAT_REGEX, value)) |