Skip to content

Space in section header #13

@joeyJsonar

Description

@joeyJsonar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions