Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NcRichText): Make URL_PATTERN match localhost and URLs with ports #5176

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

mejo-
Copy link
Contributor

@mejo- mejo- commented Jan 29, 2024

E.g. the file reference widget should work with links to Nextcloud on localhost.

Also add some basic unit tests to prevent regressions with the regexes in the future.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

@mejo- mejo- added the 3. to review Waiting for reviews label Jan 29, 2024
@mejo- mejo- added this to the 8.6.0 milestone Jan 29, 2024
Copy link
Contributor

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for adding the tests.

Maybe one thing to clarify (see below).

src/components/NcRichText/helpers.js Outdated Show resolved Hide resolved
E.g. the file reference widget should work with links to Nextcloud on
localhost.

Also add some basic unit tests to prevent regressions with the regexes
in the future.

Signed-off-by: Jonas <[email protected]>
@mejo- mejo- merged commit 102db32 into master Jan 30, 2024
15 checks passed
@mejo- mejo- deleted the fix/reference_url_pattern branch January 30, 2024 10:13
mejo- added a commit to nextcloud/server that referenced this pull request Mar 5, 2024
E.g. the file reference widget should work with links to Nextcloud on
localhost.

This adjusts the URL pattern regexes in server to be in sync with the
ones in `@nextcloud/vue`. See nextcloud-libraries/nextcloud-vue#5176
for further details.

Signed-off-by: Jonas <[email protected]>
mejo- added a commit to nextcloud/server that referenced this pull request Mar 5, 2024
E.g. the file reference widget should work with links to Nextcloud on
localhost.

This adjusts the URL pattern regexes in server to be in sync with the
ones in `@nextcloud/vue`. See nextcloud-libraries/nextcloud-vue#5176
for further details.

Signed-off-by: Jonas <[email protected]>
mejo- added a commit to nextcloud/server that referenced this pull request Mar 6, 2024
E.g. the file reference widget should work with links to Nextcloud on
localhost.

This adjusts the URL pattern regexes in server to be in sync with the
ones in `@nextcloud/vue`. See nextcloud-libraries/nextcloud-vue#5176
for further details.

Signed-off-by: Jonas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants