Skip to content

Commit

Permalink
Respect negate property in attributeName
Browse files Browse the repository at this point in the history
Co-authored-by: bernard-wagner@users.noreply.github.com
  • Loading branch information
shadowspawn committed Sep 13, 2024
1 parent 4e87829 commit 29c2f64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/option.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ class Option {
*/

attributeName() {
return camelcase(this.name().replace(/^no-/, ''));
if (this.negate) {
return camelcase(this.name().replace(/^no-/, ''));
}
return camelcase(this.name());
}

/**
Expand Down

0 comments on commit 29c2f64

Please sign in to comment.