Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: utils/markdown/lib.dart

Issue 8739001: Use subscript to get match groups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/markdown/inline_parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/markdown/lib.dart
diff --git a/utils/markdown/lib.dart b/utils/markdown/lib.dart
index 6c2ddc31c93f183d1d66e6f3450a2f2a4261fce2..9cda2fadfb6c4930e8565dda308d2764d7f1d4dc 100644
--- a/utils/markdown/lib.dart
+++ b/utils/markdown/lib.dart
@@ -59,9 +59,9 @@ class Document {
final match = pattern.firstMatch(lines[i]);
if (match != null) {
// Parse the link.
- final id = match.group(1);
- final url = match.group(2);
- var title = match.group(3);
+ final id = match[1];
+ final url = match[2];
+ var title = match[3];
if (title == '') {
// No title.
« no previous file with comments | « utils/markdown/inline_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698