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

Support for spaces in file names #97

Open
lukas-reineke opened this issue Apr 25, 2021 · 0 comments
Open

Support for spaces in file names #97

lukas-reineke opened this issue Apr 25, 2021 · 0 comments

Comments

@lukas-reineke
Copy link

lukas-reineke commented Apr 25, 2021

Currently, the regex explicitly only allows escaped spaces in filenames.

'f': `(?P<f>(?:[[:alpha:]]:)?(?:\\ |[^ ])+?)`,

But some tools like flake8 print the output with unescaped file names, even if the input was escaped.
Currently, there is no way to match those filenames.

example

cat foo\ bar/a.py | flake8 --stdin-display-name foo\ bar/a.py -

foo bar/a.py:1:80: E501 line too long (144 > 79 characters)

Not really sure if there is a good solution for this

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