Skip to content

Commit

Permalink
Fix ancient Babel
Browse files Browse the repository at this point in the history
Closes GH-4.
  • Loading branch information
wooorm committed Oct 8, 2021
1 parent 063888d commit c97bdc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ function collectText(node, options) {
// break is the zero-width space character (U+200B), then the break is
// removed, leaving behind the zero-width space.
if (
lines[index].charCodeAt(lines[index].length - 1) === 0x20_0b /* ZWSP */ ||
lines[index].charCodeAt(lines[index].length - 1) === 0x200b /* ZWSP */ ||
(index < lines.length - 1 &&
lines[index + 1].charCodeAt(0) === 0x20_0b) /* ZWSP */
lines[index + 1].charCodeAt(0) === 0x200b) /* ZWSP */
) {
result.push(lines[index])
join = ''
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@
"trailingComma": "none"
},
"xo": {
"prettier": true
"prettier": true,
"rules": {
"unicorn/numeric-separators-style": "off"
}
},
"remarkConfig": {
"plugins": [
Expand Down

0 comments on commit c97bdc2

Please sign in to comment.