Skip to content

Commit

Permalink
Bump xo from 0.52.3 to 0.56.0 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Aug 21, 2023
1 parent a4d190c commit 838eb0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ function shortenURL(href, currentUrl = 'https://github.com') {
query = query.replace('is:pr', '');
}

query = ` (${query.replace(/\s+/g, ' ').trim()})`;
query = ` (${query.replaceAll(/\s+/g, ' ').trim()})`;
}

// Drop leading and trailing slash of relative path
return pathname.replace(/^[/]|[/]$/g, '') + url.search + hash + query;
return pathname.replaceAll(/^[/]|[/]$/g, '') + url.search + hash + query;
}

function applyToLink(a, currentUrl) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@sindresorhus/tsconfig": "^3.0.1",
"ava": "^4.3.3",
"tsd": "^0.23.0",
"xo": "^0.52.3"
"xo": "^0.56.0"
},
"engines": {
"node": ">=14.0.0"
Expand Down

0 comments on commit 838eb0f

Please sign in to comment.