mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:06:59 +00:00
4eda30c5c2
Change-Id: I5bacd28d806661b9190d4b097955263a56f19a4d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128110 Auto-Submit: Bob Nystrom <rnystrom@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Bob Nystrom <rnystrom@google.com>
13 lines
480 B
Dart
13 lines
480 B
Dart
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
// Regression test for http://dartbug.com/19193
|
|
main() {
|
|
RegExp re = new RegExp(r'.*(a+)+\d');
|
|
Expect.isTrue("a0aaaaaaaaaaaaa".contains(re));
|
|
Expect.isTrue("a0aaaaaaaaaaaaaa".contains(re)); // false when using JSCRE.
|
|
}
|