Skip to content

Commit

Permalink
Change quantifier to allow zero or more
Browse files Browse the repository at this point in the history
  • Loading branch information
ekinhbayar committed Apr 1, 2017
1 parent e03a006 commit 51b7cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IntervalParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class IntervalParser

public static $intervalOnly = "^(?<interval>(?&timepart)++)$/uix";

public static $intervalWithTrailingData = "^(?<interval>(?&timepart)++)(?<trailing>.+)$/uix";
public static $intervalWithTrailingData = "^(?<interval>(?&timepart)++)(?<trailing>.*)$/uix";

/**
* Used to turn a given non-strtotime-compatible time string into a compatible one
Expand Down

0 comments on commit 51b7cc2

Please sign in to comment.