Index: samples/markdown/inline_parser.dart |
diff --git a/samples/markdown/inline_parser.dart b/samples/markdown/inline_parser.dart |
index 3a3fbd3aa13ac3bf61139a487002798b4657f62b..45632f03ccbb6aab811ab57f33d6b8ada99a31b2 100644 |
--- a/samples/markdown/inline_parser.dart |
+++ b/samples/markdown/inline_parser.dart |
@@ -144,7 +144,7 @@ class InlineSyntax { |
bool tryMatch(InlineParser parser) { |
final startMatch = pattern.firstMatch(parser.currentSource); |
- if ((startMatch != null) && (startMatch.start() == 0)) { |
+ if ((startMatch != null) && (startMatch.start == 0)) { |
// Write any existing plain text up to this point. |
parser.writeText(); |
@@ -342,7 +342,7 @@ class TagState { |
/// pattern. |
bool tryMatch(InlineParser parser) { |
Match endMatch = syntax.endPattern.firstMatch(parser.currentSource); |
- if ((endMatch != null) && (endMatch.start() == 0)) { |
+ if ((endMatch != null) && (endMatch.start == 0)) { |
// Close the tag. |
close(parser, endMatch); |
return true; |