fix: code style

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-08-27 11:41:13 +02:00
parent fa5b9c7beb
commit c775db9a2e
3 changed files with 25 additions and 16 deletions

View file

@ -38,7 +38,7 @@ export function convertInlineStyleToMap(
const replacedProperty = property
.toLowerCase()
.replace(/^-ms-/, 'ms-')
.replace(/-(.)/g, (_, character) => character.toUpperCase())
.replace(/-(.)/g, (_, character: string) => character.toUpperCase())
// add the new style property and value to the style object
styleObject[replacedProperty] = value