Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
🤖 Generated by Copilot at 8083d8c
This pull request refactors the regular expressions for matching handles, hashtags and URLs in the codebase. It moves the regex constants from
data/constants
toutils/regex
and updates the imports and usages in various components and modules. It also removes some unused or incompatible dependencies and updates thepnpm-lock.yaml
file. These changes improve the code quality, consistency and user experience of the app.Related issues
Fixes # (issue)
Type of change
Explanation of the changes
🤖 Generated by Copilot at 8083d8c
tlds
dependency fromapps/web/package.json
andpnpm-lock.yaml
(link, link, link)esbuild
,webpack
and@types/node
versions inapps/web/package.json
andpnpm-lock.yaml
to improve build performance and compatibility ( link, link, link, link, link, link, link, link)data/constants.ts
and update their imports and usages inapps/web/src/components/Publication/RelevantPeople.tsx
,apps/web/src/components/Shared/Lexical/Plugins/AutoLinkPlugin.tsx
,apps/web/src/components/Shared/Markup/index.tsx
andpackages/lib/getURLs.ts
to make them more robust and consistent (link, link, link, link, link, link, link, link, link)AutoLinkPlugin
inapps/web/src/components/Shared/Lexical/Plugins/AutoLinkPlugin.tsx
as it is not needed and can cause false positives (link)apps/web/src/lib/markupUtils.ts
(link)Emoji
🗑️🛠️🚀