fix: toKebabCase import issue

This commit is contained in:
Wesley Luyten
2025-12-05 18:25:35 -08:00
parent cbf41ce4c7
commit c4f1012f46
+6 -2
View File
@@ -1,5 +1,3 @@
import { toKebabCase } from '@videojs/utils';
/**
* Converts a `NamedNodeMap` to a plain object.
*/
@@ -40,3 +38,9 @@ export function setAttributes(element: HTMLElement, attributes: Record<string, a
}
}
}
function toKebabCase(str: string): string {
return str
.replace(/([A-Z])/g, '-$1')
.toLowerCase();
}