Allow '+' and 'E' in numbers when tokenizing drawings

This commit is contained in:
arch1t3cht 2023-01-02 02:30:25 +01:00
parent 74b9353038
commit c0f337a992

View file

@ -165,7 +165,7 @@ class WordSplitter {
bool valid = true;
for (size_t k = 0; k < tokens[j].length; k++) {
char c = text[dpos + k];
if (!((c >= '0' && c <= '9') || c == '.' || c == '-' || c == 'e')) {
if (!((c >= '0' && c <= '9') || c == '.' || c == '+' || c == '-' || c == 'e' || c == 'E')) {
valid = false;
}
}