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 regexp to find section #91

Closed
ifedchankau opened this issue Jul 31, 2018 · 1 comment
Closed

Fix regexp to find section #91

ifedchankau opened this issue Jul 31, 2018 · 1 comment
Assignees

Comments

@ifedchankau
Copy link
Collaborator

Regular expression to find section now is [\\s]+${sectionName}[\n]+\n?(?:[ \t].*?(?:\n|$))*. But, if it is word "options" at the end of description, it will be parsed as section.

Example from eslint:
--parser-options Object Specify parser options

Please, fix it.

Also, regexp is very hard. Please, find way to simplify it if possible.

ifedchankau added a commit to ifedchankau/usage-parser that referenced this issue Aug 1, 2018
Fixed findSection regexp

Closes linterhub#91
ifedchankau added a commit to ifedchankau/usage-parser that referenced this issue Aug 2, 2018
Fix findSection regexp

Closes linterhub#91
@xferra xferra closed this as completed in #99 Aug 4, 2018
xferra pushed a commit that referenced this issue Aug 4, 2018
Fix findSection regexp

Closes #91
@itekaf
Copy link
Contributor

itekaf commented Aug 20, 2018

🎉 This issue has been resolved in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants