Skip to content

Conversation

ivanistuk
Copy link

Adds a check to see if text is empty before making it a link.

Fixes #279.

Copy link

@ImRodry ImRodry left a comment

Choose a reason for hiding this comment

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

While this works this isn't the optimal solution in my opinion. I believe you should remove the last ? when adding relativePath on this line

module.exports = new RegExp("^(" + absolutePath() + "|" + relativePath() + ")$", "i");

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.

Empty strings are treated as URLs
2 participants