-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat: support globals #81
Conversation
lib/processor.js
Outdated
@@ -58,7 +58,7 @@ function getComment(html) { | |||
|
|||
html = html.slice(commentStart.length, -commentEnd.length); | |||
|
|||
if (html.trim().slice(0, prefix.length) !== prefix) { | |||
if (!html.trim().match(regex)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe !regex.test(html.trim())
would be more efficient in a boolean context (returns boolean value, not object)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vsemozhetbyt Good call, pushed update.
@vsemozhetbyt I made the requested change, does this look good now? |
@AndersDJohnson Yes, for me, but I am not a collaborator in this repository and have not any approval rights) |
If I get it right, this repository is updated seldom, so be not discouraged with a long review delay. |
Sorry for the delay, @AndersDJohnson! Yeah, I work on this in my spare time in between other projects, so it can take awhile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @AndersDJohnson!
@AndersDJohnson sorry for the delay on this. 1.0.0-beta.8 is published with this change! |
Fixes #79