Skip to content

Commit

Permalink
repair localhost match
Browse files Browse the repository at this point in the history
  • Loading branch information
Moqizhongyuan committed Sep 5, 2024
1 parent 8ca1256 commit 3dd3904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const URL_INLINE_NO_SLASH = new RegExp(
'(?:\\.(?:1\\d\\d|2[0-4]\\d|25[0-4]|[1-9]\\d?))' +
'|' +
// host & domain names, may end with dot
'(?![-_])(?:[-\\w\\xa1-\\xff]{0,63}[^-_]\\.)+' +
'(?![-_])(?:[-\\w\\xa1-\\xff]{0,63}[^-_]\\.?)+' +
// TLD identifier name, may end with dot
'(?:[a-zA-Z\\xa1-\\xff]{2,}\\.?)' +
')' +
Expand Down

0 comments on commit 3dd3904

Please sign in to comment.