Skip to content

Commit

Permalink
Allow '+' and 'E' in numbers when tokenizing drawings
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1t3cht committed Jan 17, 2025
1 parent e95b832 commit 028f9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libaegisub/ass/dialogue_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,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;
}
}
Expand Down

0 comments on commit 028f9ab

Please sign in to comment.