mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
split remaining utilities from shared
This commit is contained in:
10
common/script/libs/removeWhitespace.js
Normal file
10
common/script/libs/removeWhitespace.js
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Remove whitespace #FIXME are we using this anywwhere? Should we be?
|
||||
*/
|
||||
|
||||
module.exports = function(str) {
|
||||
if (!str) {
|
||||
return '';
|
||||
}
|
||||
return str.replace(/\s/g, '');
|
||||
};
|
||||
Reference in New Issue
Block a user