Skip to content

Commit

Permalink
Fix the parsing of scientific notation in keyframe selectors (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Oct 20, 2021
1 parent 3916ff6 commit 6253da7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/parse/keyframe_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class KeyframeSelectorParser extends Parser {
}
}

if (scanIdentifier("e")) {
buffer.write(scanner.readChar());
if (scanIdentChar($e)) {
buffer.writeCharCode($e);
var next = scanner.peekChar();
if (next == $plus || next == $minus) buffer.write(scanner.readChar());
if (next == $plus || next == $minus) buffer.writeCharCode(scanner.readChar());
if (!isDigit(scanner.peekChar())) scanner.error("Expected digit.");

while (isDigit(scanner.peekChar())) {
Expand Down

0 comments on commit 6253da7

Please sign in to comment.