Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonny Borges
2020-10-17 13:05:52 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-10-17 13:05:52 -0300
Commit
e480f5117034b72b9d1f3571dddbd854c897f447
e480f511
1 parent
885a09f0
Fix phone number with two digits
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/get_utils/src/get_utils/get_utils.dart
lib/get_utils/src/get_utils/get_utils.dart
View file @
e480f51
...
...
@@ -204,7 +204,7 @@ class GetUtils {
/// Checks if string is phone number.
static
bool
isPhoneNumber
(
String
s
)
=>
hasMatch
(
s
,
r'
^(0|\+|(\+[0-9]{2,4}|\(\+?[0-9]{2,4}\)) ?)([0-9]*|\d{2,4}-\d{2,4}(-\d{2,4})?)
$'
);
r'
([0-9\s\-]{7,})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?
$'
);
/// Checks if string is DateTime (UTC or Iso8601).
static
bool
isDateTime
(
String
s
)
=>
...
...
Please
register
or
login
to post a comment