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

Add disableKeywords only if defined #876

Merged
merged 1 commit into from
Dec 30, 2021
Merged

Conversation

jcmoraisjr
Copy link
Owner

--disable-config-keywords command-line option allows to define a comma separated list of blacklisted keywords. If not declared, an empty string is used as an input to Split(). This empty string is however converted in an array of one element with an empty string, and such empty keyword matches with empty lines, denying configurations with empty lines. This update ignores empty entries when parsing the custom snippet, and also TrimSpace() all the options in order to properly match with the custom snippet tokenizer.

`--disable-config-keywords` command-line option allows to define a
comma separated list of blacklisted keywords. If not declared, an
empty string is used as an input to `Split()`. This empty string is
however converted in an array of one element with an empty string, and
such empty keyword matches with empty lines, denying configurations with
empty lines. This update ignores empty entries when parsing the custom
snippet, and also `TrimSpace()` all the options in order to properly
match with the custom snippet tokenizer.
@jcmoraisjr
Copy link
Owner Author

#873

@jcmoraisjr jcmoraisjr merged commit 38047d4 into master Dec 30, 2021
@jcmoraisjr jcmoraisjr deleted the jm-split-empty-keywords branch December 30, 2021 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant