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: make REGEX_URL validate links and stop validating non links #1383

Merged
merged 5 commits into from
Feb 25, 2020
Merged

fix: make REGEX_URL validate links and stop validating non links #1383

merged 5 commits into from
Feb 25, 2020

Conversation

julien
Copy link
Contributor

@julien julien commented Feb 24, 2020

@julien julien requested a review from wincent February 24, 2020 15:58
Copy link
Contributor

@wincent wincent left a comment

Choose a reason for hiding this comment

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

So this fixes the reported issue ("eeeewwwww" getting linked) but it introduces other potentially unintended behavior (as noted, the tests don't do what they say they do any more).

At the very least, we should be adding a regression test that shows that "eeeewwww" no longer gets linked, and we need to have a rationale for why we think the other changes are acceptable.

test/plugins/test/autolink.js Outdated Show resolved Hide resolved
src/plugins/autolink.js Show resolved Hide resolved
src/plugins/autolink.js Outdated Show resolved Hide resolved
@wincent wincent merged commit 5834b97 into liferay:master Feb 25, 2020
@julien julien deleted the LPS-99704 branch February 25, 2020 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants