Skip to content

Commit

Permalink
checks: Update String.starts with to take Pattern (instead of String)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Jun 27, 2022
1 parent f88c00f commit 79ac623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/checks/lib/src/extensions/core.dart
Expand Up @@ -151,7 +151,7 @@ extension StringChecks on Check<String> {
});
}

void startsWith(String other) {
void startsWith(Pattern other) {
context.expect(
() => ['starts with ${literal(other)}'],
(actual) {
Expand Down

0 comments on commit 79ac623

Please sign in to comment.