mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 13:48:14 +00:00
fix: toKebabCase import issue
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user