File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.2.1-dev
2
+
1
3
## 1.2.0
2
4
3
5
* Require Dart 2.18.0
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class EagerSpanScanner extends SpanScanner {
97
97
@override
98
98
bool scan (Pattern pattern) {
99
99
if (! super .scan (pattern)) return false ;
100
- final firstMatch = ( lastMatch! [0 ]) ! ;
100
+ final firstMatch = lastMatch! [0 ]! ;
101
101
102
102
final newlines = _newlinesIn (firstMatch);
103
103
_line += newlines.length;
Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ class LineScanner extends StringScanner {
106
106
final newlines = _newlinesIn (lastMatch! [0 ]! );
107
107
_line += newlines.length;
108
108
if (newlines.isEmpty) {
109
- _column += ( lastMatch! [0 ]) ! .length;
109
+ _column += lastMatch! [0 ]! .length;
110
110
} else {
111
- _column = ( lastMatch! [0 ]) ! .length - newlines.last.end;
111
+ _column = lastMatch! [0 ]! .length - newlines.last.end;
112
112
}
113
113
114
114
return true ;
Original file line number Diff line number Diff line change 1
1
name : string_scanner
2
- version : 1.2.0
2
+ version : 1.2.1-dev
3
3
description : A class for parsing strings using a sequence of patterns.
4
4
repository : https://github.com/dart-lang/string_scanner
5
5
You can’t perform that action at this time.
0 commit comments