Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implement a getter for pattern to complete the Match interface.

  • Loading branch information...
commit 02728c917cde8283113d8f0b35f01013fdaca076 1 parent 479768b
cshapiro@google.com authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  runtime/lib/regexp.dart
View
2  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;
Please sign in to comment.
Something went wrong with that request. Please try again.