mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-25 00:39:27 +02:00
remove: console.log from utils.camelCaseToKebabCase()
This commit is contained in:
parent
b44096c8ae
commit
26d0e80f91
@ -647,6 +647,5 @@ export function animationFileName(move: Moves): string {
|
|||||||
* @source {@link https://stackoverflow.com/a/67243723/}
|
* @source {@link https://stackoverflow.com/a/67243723/}
|
||||||
*/
|
*/
|
||||||
export function camelCaseToKebabCase(str: string): string {
|
export function camelCaseToKebabCase(str: string): string {
|
||||||
console.log("str:", str);
|
|
||||||
return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (s, o) => (o ? "-" : "") + s.toLowerCase());
|
return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (s, o) => (o ? "-" : "") + s.toLowerCase());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user