Skip to content

Commit c6f5df6

Browse files
committed
Update xo
1 parent 933720e commit c6f5df6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ function collectText(node, options) {
390390
// break is the zero-width space character (U+200B), then the break is
391391
// removed, leaving behind the zero-width space.
392392
if (
393-
lines[index].charCodeAt(lines[index].length - 1) === 0x200b /* ZWSP */ ||
393+
lines[index].charCodeAt(lines[index].length - 1) === 0x20_0b /* ZWSP */ ||
394394
(index < lines.length - 1 &&
395-
lines[index + 1].charCodeAt(0) === 0x200b) /* ZWSP */
395+
lines[index + 1].charCodeAt(0) === 0x20_0b) /* ZWSP */
396396
) {
397397
result.push(lines[index])
398398
join = ''

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"type-coverage": "^2.0.0",
5151
"typescript": "^4.0.0",
5252
"unist-builder": "^3.0.0",
53-
"xo": "^0.39.0"
53+
"xo": "^0.42.0"
5454
},
5555
"scripts": {
5656
"prepack": "npm run build && npm run format",

0 commit comments

Comments
 (0)