Skip to content

Commit 028f9ab

Browse files
committed
Allow '+' and 'E' in numbers when tokenizing drawings
1 parent e95b832 commit 028f9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libaegisub/ass/dialogue_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class WordSplitter {
185185
bool valid = true;
186186
for (size_t k = 0; k < tokens[j].length; k++) {
187187
char c = text[dpos + k];
188-
if (!((c >= '0' && c <= '9') || c == '.' || c == '-' || c == 'e')) {
188+
if (!((c >= '0' && c <= '9') || c == '.' || c == '+' || c == '-' || c == 'e' || c == 'E')) {
189189
valid = false;
190190
}
191191
}

0 commit comments

Comments
 (0)