thesimj / envyaml

Simple YAML configuration file parser
MIT License
78 stars 21 forks source link

cannot put inline comments with strict mode enabled. #50

Open hotnsoursoup opened 1 month ago

hotnsoursoup commented 1 month ago

sample:

database: host: 'notthehost' #$DATABASE_HOST port: 3301 username: username password: $MYSQL_PASS database: test

hotnsoursoup commented 1 month ago

Updated RE_COMMENTS.

This one appears to be working.

RE_COMMENTS = re.compile(r"((?:(?<=\s)|^)#.*$)", re.MULTILINE | re.UNICODE | re.IGNORECASE)