We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
config.ini
[foo] bar = ['lala', 'lele', 'here comes the # but this is not a comment']
Example: mat = self._nolistvalue.match(value) results in the following matching groups:
mat = self._nolistvalue.match(value)
0: ['lala', 'lele', 'here comes the 1: but this is not a comment']
Replacing (?:[^'"\#].*?)| # unquoted with (?:[^'"\#].*)| # unquoted resolves the problem BUT leads to not correctly regexing real comments.
(?:[^'"\#].*?)| # unquoted
(?:[^'"\#].*)| # unquoted
No idea how to easily fix that without rewriting the whole regex.
The text was updated successfully, but these errors were encountered:
Well, possibly re is just the wrong solution here, shlex might be a better way to (pre-)process this.
re
shlex
Sorry, something went wrong.
I agree that re here seems brittle and I think someone should probably do something after 5.1.0 is shipped
No branches or pull requests
config.ini
Example:
mat = self._nolistvalue.match(value)
results in the following matching groups:
Replacing
(?:[^'"\#].*?)| # unquoted
with
(?:[^'"\#].*)| # unquoted
resolves the problem BUT leads to not correctly regexing real comments.
No idea how to easily fix that without rewriting the whole regex.
The text was updated successfully, but these errors were encountered: