Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Simplified the if.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Aug 27, 2019
1 parent 6f87bdf commit 2dc61f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bold/boldediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class BoldEditing extends Plugin {
}

// Value of the `font-weight` attribute can be defined as a string or a number.
if ( fontWeight == 'bold' || /\d+/.test( fontWeight ) && Number( fontWeight ) >= 600 ) {
if ( fontWeight == 'bold' || Number( fontWeight ) >= 600 ) {
return {
name: true,
styles: [ 'font-weight' ]
Expand Down

0 comments on commit 2dc61f2

Please sign in to comment.