Skip to content

Commit 6f87bf4

Browse files
authored
Update logServerSideEvent.ts
1 parent 7843abb commit 6f87bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/utils/logServerSideEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,5 @@ function convertKeys(obj: unknown): unknown {
132132
}
133133

134134
function camelToSnakeCase(str: string) {
135-
return str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
135+
return str.replace(/([a-z0-9])([A-Z])/g, '$1_$2').toLowerCase();
136136
}

0 commit comments

Comments
 (0)