-
Notifications
You must be signed in to change notification settings - Fork 1
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 the feature keyword issue #20
base: main
Are you sure you want to change the base?
Conversation
e5ca064
to
6b981e9
Compare
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.
fixing the regex would be the way to go
gherlint-vscode/server/src/regex.js
Line 3 in d10e18e
feature: /(?<!\S)Feature:/g, |
will try to fix it with regex. |
6b981e9
to
621c124
Compare
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.
looks good 🤞
@@ -1,6 +1,6 @@ | |||
module.exports = { | |||
globalMatch: { | |||
feature: /(?<!\S)Feature:/g, | |||
feature: /(?<!\S)(?:^| )Feature:/gm, |
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.
the regex will match with the following:
some text Feature: description
Also add a test for this case
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.
@SagarGi Also, add test for the tabs
<tab><tab>Feature: description
@SagarGi If the appropriate regex cannot found then one solution would be:
|
What is the status of this? |
This PR tries to fix this #16.
I have changes the regex for the
Feature:
keyword not to count it as when theFeature:
is as text