Skip to content

Commit

Permalink
Update components/demo/demo-snippet.js
Browse files Browse the repository at this point in the history
Co-authored-by: Danny Gleckler <[email protected]>
  • Loading branch information
dbatiste and bearfriend authored Jan 9, 2025
1 parent 7c768e5 commit 03d6bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/demo/demo-snippet.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class DemoSnippet extends LitElement {

return lines.join('\n')
.replace(/ class=""/g, '') // replace empty class attributes (class="")
.replace(/_[^=]*="[^"]*"[^\s>]/, '') // replace private reflected properties (_attr, _attr="value", but not target="_blank")
.replace(/\s+_[^\s\/>"'=]*(=(?<q>['"]).*?(?<!\\)\k<q>)?/g, '') // replace private reflected properties (_attr, _attr="value", but not target="_blank")

Check failure on line 214 in components/demo/demo-snippet.js

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \/
.replace(/=""/g, ''); // replace empty strings for boolean attributes (="")
}

Expand Down

0 comments on commit 03d6bca

Please sign in to comment.