Permalink
Browse files

Implement a getter for pattern to complete the Match interface.

  • Loading branch information...
1 parent 479768b commit 02728c917cde8283113d8f0b35f01013fdaca076 cshapiro@google.com committed May 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 runtime/lib/regexp.dart
@@ -50,6 +50,8 @@ class JSRegExpMatch implements Match {
return regexp._groupCount;
}
+ String get pattern() => regexp.pattern;
+
final RegExp regexp;
final String str;
final List<int> _match;

0 comments on commit 02728c9

Please sign in to comment.