Skip to content

Commit

Permalink
Update types/timespan.pp
Browse files Browse the repository at this point in the history
Co-authored-by: Kenyon Ralph <[email protected]>
  • Loading branch information
jay7x and kenyon authored Oct 30, 2024
1 parent 9289bbf commit 1f14b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/timespan.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# @see https://www.freedesktop.org/software/systemd/man/latest/systemd.time.html
type Systemd::Timespan = Variant[
Integer[0],
Pattern[/^([0-9]+ *(usec|us|msec|ms|second[s]?|sec|s|minute[s]?|min|m|hour[s]?|hr|h|day[s]?|d|week[s]?|w|month[s]?|M|year[s]?|y)? *)+$/]
Pattern[/^([0-9]+ *(usec|us|msec|ms|seconds?|sec|s|minutes?|min|m|hours?|hr|h|days?|d|weeks?|w|months?|M|years?|y)? *)+$/]
]

0 comments on commit 1f14b38

Please sign in to comment.