mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
fix: code style
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
fa5b9c7beb
commit
c775db9a2e
3 changed files with 25 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue