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
CpdnCristiano
2020-12-23 16:19:02 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3c171f2e8f60a9ae5cf719a2d4f8fd22ef7fe604
3c171f2e
1 parent
05e5f3f0
camelcase improvement
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
lib/get_utils/src/get_utils/get_utils.dart
lib/get_utils/src/get_utils/get_utils.dart
View file @
3c171f2
...
...
@@ -535,11 +535,7 @@ class GetUtils {
/// Remove all whitespace inside string
/// Example: your name => yourname
static
String
removeAllWhitespace
(
String
value
)
{
if
(
isNullOrBlank
(
value
))
{
return
null
;
}
return
value
.
replaceAll
(
' '
,
''
);
return
value
?.
replaceAll
(
' '
,
''
);
}
/// Camelcase string
...
...
@@ -549,7 +545,8 @@ class GetUtils {
return
null
;
}
final
separatedWords
=
value
.
split
(
' '
);
final
separatedWords
=
value
.
split
(
RegExp
(
r'[!@#<>?":`~;[\]\\|=+)(*&^%-\s_]+'
));
var
newString
=
''
;
for
(
final
word
in
separatedWords
)
{
...
...
Please
register
or
login
to post a comment