quicksilver/Quicksilver — pull request #815 by HenningJ (2012-04-13 13:18:57+00:00)
Title: Fixes wildcard resolving for non-existing paths (issue #814)

Return original string instead of nil if path can't be found during wildcard resolving. Fixes issue #814.

Btw. this is a good example why unit tests are great:
There were unit tests in place for all the intended behavior I knew about. For every change I made, I could just run the unit tests to make sure that I didn't break anything of that.
And to fix the bug, I just added a (failing) test representing the bug. And once the test passed, I knew I had fixed the bug. Without breaking anything else. :-)