Skip to content

Commit

Permalink
updated test regex to handle case when there is a space after time su…
Browse files Browse the repository at this point in the history
…ffix with no time zone
  • Loading branch information
Tyler Norbury committed Jan 10, 2020
1 parent 26a6c5e commit fae7e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/specs/date.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ main() {
expect(
faker.date.time(),
matches(new RegExp(
r"^([0-9]){1,}:([0-9]){2} ?( (AM|PM|((\w){3})))?( ((\w){3}))*$")));
r"^([0-9]){1,}:([0-9]){2} ?( (AM|PM|((\w){3})))?( )?(((\w){3}))*$")));
});
});
}

0 comments on commit fae7e26

Please sign in to comment.