Committed by
GitHub
Merge pull request #747 from AleFachini/patch-1
GetUtils has Uppercase/Capital letter?
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -95,6 +95,9 @@ class GetUtils { | @@ -95,6 +95,9 @@ class GetUtils { | ||
95 | /// Checks if string consist only Alphabet. (No Whitespace) | 95 | /// Checks if string consist only Alphabet. (No Whitespace) |
96 | static bool isAlphabetOnly(String s) => hasMatch(s, r'^[a-zA-Z]+$'); | 96 | static bool isAlphabetOnly(String s) => hasMatch(s, r'^[a-zA-Z]+$'); |
97 | 97 | ||
98 | + /// Checks if string contains at least one Capital Letter | ||
99 | + static bool hasCapitalletter(String s) => hasMatch(s, r'[A-Z]'); | ||
100 | + | ||
98 | /// Checks if string is boolean. | 101 | /// Checks if string is boolean. |
99 | static bool isBool(String value) { | 102 | static bool isBool(String value) { |
100 | if (isNull(value)) { | 103 | if (isNull(value)) { |
-
Please register or login to post a comment