Fixed issue #281 - added backslashing of special characters#367
Fixed issue #281 - added backslashing of special characters#367tradzik wants to merge 2 commits intosup-heliotrope:developfrom
Conversation
|
i am unfamiliar with this issue. can anyone else take a look at this please? |
|
@ty221 You are fixing the true cause of a problem reported in #281, as I see it. Escaping of Is escaping spaces and quotes really necessary at all? It would be very, very well appreciated if you first wrote a failing test that would pinpoint the cause of the bug reported in #281 and then greened it with the fix. If you don't, please provide us with your core test cases (filenames that failed before fixing and work after fixing). |
|
Hi, I suggest you to check these 13 names: abcd \24 Sun Jan 04 2015 at 09:51:52 użytkownik Tero Tilus notifications@github.com
|
|
Tymon Radzik, 2015-01-04 11:03:
In all those cases, the problem is backslash. To fix those you only Have you tried odd*name.txt Those incorporate the other File::fnmatch meta characters (asterisk, Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ |
|
How about my main points
|
|
Hmm... as you can see I moved my code down. Sun Jan 04 2015 at 10:28:01 użytkownik Tero Tilus notifications@github.com
|
|
Sorry, ill-timed reload or something. Code seems legit now. But... It is only now that I start thinking of why that It is pretty apparent that this fix now breaks that functionality. 😦 I can't really say if #281 is fixable without some major changes. Problem is the return value of
Appears this wasn't trivial after all... |
Added code, which is backslashing special characters. Tested on very various collection of names...
My mentor: @eMBee ping