Added color picker
This commit is contained in:
7
app/imports/ui/utility/swapCase.js
Normal file
7
app/imports/ui/utility/swapCase.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export function kebabToCamelCase(string){
|
||||
return string.replace(/-([a-z0-9])/g, g => g[1].toUpperCase());
|
||||
};
|
||||
|
||||
export function camelToKebabCase(string){
|
||||
return string.replace(/([a-z][A-Z0-9])/g, g => g[0] + '-' + g[1].toLowerCase());
|
||||
};
|
||||
Reference in New Issue
Block a user