Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/Exobrain/Types.pm
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ subtype SmsStr,
where { length($_) <= 160 }
;

# TODO: Properly define phone numbers
# Phone number type. Consists of only digits
# Example: 18005555555 or 1234567
subtype PhoneNum,
as Str,
where { 1 },
where { $_ =~ /\d+/ },
;

subtype PosNum,
Expand Down