-
Notifications
You must be signed in to change notification settings - Fork 25
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
-exclude without trailing space causes This namespace does not exist error #153
Comments
-exclude
without trailing space causes *This namespace does not exist* error-exclude
without trailing space causes This namespace does not exist
error
-exclude
without trailing space causes This namespace does not exist
error-exclude
without trailing space causes This namespace does not exist error
-exclude
without trailing space causes This namespace does not exist error
Actually the same problem occurs after other options too |
Looks like root cause is 1042ed4 |
Previously, only space was considered. This caused error when the nspages tag spanned multiple lines and there was no trailing space before the newline. Fixes gturri#153
Proposed fix in PR #154 |
The issue is not fixed yet, but at least we now already have a test for when a fix will be available
thanks for the bug report! |
@gturri Thanks for the fast response. I have tested your fix. The good news is that it does improve the situation, effectively handling the trailing But of course as you suspected in #154 (comment) it will fail again when the option is followed by any other kind of whitespace (e.g. Of course you can add another str_replace() call for each possibility, but that does not feel right. I believe that my approach of using a preg_replace() call was cleaner and more generic. The regression on the original issue #123 that my proposed fix introduced can easily be addressed by using a modified regex pattern ( I can't reopen this issue myself, but I'll submit another PR so you can review and test. |
Previously, only space was considered. This caused error when the nspages tag spanned multiple lines and there was no trailing space before the newline. Fixes gturri#153
I have a page with a complex nstables tag that requires multiple excludes. In the interest of making it easier to read & maintain, I split it over multiple lines like so:
If there is no space after any of the
-exclude
lines, I get e.g.Adding a trailing space fixes the problem. I would expect the newline to be treated like the space.
The text was updated successfully, but these errors were encountered: