Exported the string.ts helper function

This commit is contained in:
Tiago Ribeiro
2023-04-17 17:44:55 +01:00
parent c321a5cc69
commit 47392d4725

View File

@@ -1,4 +1,4 @@
function convertCamelCaseToReadable(camelCaseString: string): string {
export function convertCamelCaseToReadable(camelCaseString: string): string {
// Split the string using regex to match the capital letters
const wordsArray = camelCaseString.split(/(?=[A-Z])/);