commit | 79ac623a42825f8979407a2303734078c51e744d | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Mon Jun 27 13:21:27 2022 -0700 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Mon Jun 27 14:46:13 2022 -0700 |
tree | 90597cb37414c6c83a8efab2b6a46a36e6ecc666 | |
parent | f88c00f7580eb9b18624959e13e8f3e74acb99bb [diff] |
checks: Update String.starts with to take Pattern (instead of String)
diff --git a/pkgs/checks/lib/src/extensions/core.dart b/pkgs/checks/lib/src/extensions/core.dart index 39d2e83..250cbc4 100644 --- a/pkgs/checks/lib/src/extensions/core.dart +++ b/pkgs/checks/lib/src/extensions/core.dart
@@ -151,7 +151,7 @@ }); } - void startsWith(String other) { + void startsWith(Pattern other) { context.expect( () => ['starts with ${literal(other)}'], (actual) {