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

Space in section header #13

Open
joeyJsonar opened this issue Jan 20, 2023 · 0 comments
Open

Space in section header #13

joeyJsonar opened this issue Jan 20, 2023 · 0 comments

Comments

@joeyJsonar
Copy link

joeyJsonar commented Jan 20, 2023

Consider the following

[REPLICA_SET] 
additional_directories = ['${JSONAR_LOCALDIR}/credentials', '${JSONAR_DATADIR}/sonarfinder/reports']

This crashes the parser.

If I were to patch:

const SECTION = new RegExp(/^\s*\[([^\]]+)]$/);

to

const SECTION = new RegExp(/^\s*\[([^\]]+)]\s*$/);

this fixes the problem.

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

No branches or pull requests

1 participant