Revert "Space can be used instead of slash in file chooser (⌘T)"

Several people dislike the change (see issue #893) and the commit didn’t introduce new functionality per se: full path searching is still available when explicitly typing a slash.

This reverts commit 619c19e8ed.
This commit is contained in:
Allan Odgaard
2013-03-27 11:36:12 +01:00
parent 9af77ef3ab
commit 17bdfd0ad7

View File

@@ -96,7 +96,7 @@ namespace
if(str == NULL_STR || str.empty())
return;
if(regexp::match_t const& m = regexp::search("(?x) \\A (?: (?:[/ ](?=.*[/ ]))? (.*) [/ ] )? ([^/ ]*?) (\\.[^/ ]+?)? (?: :([\\d+:-x\\+]*) | @(.*) )? \\z", str))
if(regexp::match_t const& m = regexp::search("(?x) \\A (?: (?:/(?=.*/))? (.*) / )? ([^/]*?) (\\.[^/]+?)? (?: :([\\d+:-x\\+]*) | @(.*) )? \\z", str))
{
_initialized = true;