-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scanner token parsing refactor (#353)
* Refactor scanner to emit more granular tokens The DOMAIN token (among others) has been removed in favour of WORD, UWORD and other tokens. SCHEME (formerly PROTOCOL) tokens now come in several flavours. Includes additional facilities for token groups, which will be useful for future plugins down the line Also fixes file URL behaviour * Update plugins to use new scanner tokens Also improves hashtag and mention plugin accuracy * Update tests to work with new scanner * Better workspace packages to improve build order * Update benchmark require * Remove resolved FIXME * Additional tests for linkify register functions Fixes #171 Fixes #245 Fixes #351
- Loading branch information
Nick Frasser
authored
Oct 11, 2021
1 parent
3d4637e
commit e1237f7
Showing
18 changed files
with
714 additions
and
535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,8 @@ | |
"node": ">=8" | ||
}, | ||
"workspaces": [ | ||
"./packages/linkifyjs", | ||
"./packages/linkify-plugin-*/", | ||
"./packages/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.