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

This enables full path search.

Closes #893.
This commit is contained in:
Allan Odgaard
2013-03-14 10:14:45 +01:00
parent 17ef6ef5d0
commit 619c19e8ed

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;