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

refactor: use hexo-util built-in escape-regexp #56

Merged
merged 1 commit into from Mar 6, 2020

Conversation

SukkaW
Copy link
Member

@SukkaW SukkaW commented Mar 4, 2020

No description provided.

@SukkaW SukkaW requested review from segayuu and a team March 4, 2020 06:21
@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.321% when pulling f2f7417 on SukkaW:avoid-extra-dependencies into 336747f on hexojs:master.

Copy link
Member

@stevenjoezhang stevenjoezhang left a comment

Choose a reason for hiding this comment

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

@SukkaW SukkaW requested a review from curbengh March 4, 2020 10:23
@curbengh
Copy link
Contributor

curbengh commented Mar 5, 2020

It looks like these two modules are slightly different

hexo-util escapes forward slash /, which I believe is to escape the literal notation /pattern/i.

Copy link
Contributor

@curbengh curbengh left a comment

Choose a reason for hiding this comment

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

hexo-util's escapeRegExp has been used in production.

@SukkaW SukkaW merged commit 936ef7d into hexojs:master Mar 6, 2020
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

4 participants