Skip to content

Commit

Permalink
#0@patch: Fix wrong return type in CSS.encode(). (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuisong committed Aug 17, 2023
1 parent 015346d commit 3103eb4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/happy-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"whatwg-mimetype": "^3.0.0"
},
"devDependencies": {
"@types/css.escape": "^1.5.0",
"@types/node": "^15.6.0",
"@types/node-fetch": "^2.6.1",
"@typescript-eslint/eslint-plugin": "^5.16.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/happy-dom/src/css/CSS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class CSS {
* @param value Value to escape.
* @returns Escaped string.
*/
public escape(value: string): boolean {
public escape(value: string): string {
return CSSEscape(value);
}
}

0 comments on commit 3103eb4

Please sign in to comment.