From 619c19e8ed348ad9386dd2c54c9aad19d08fdc4f Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Thu, 14 Mar 2013 10:14:45 +0100 Subject: [PATCH] =?UTF-8?q?Space=20can=20be=20used=20instead=20of=20slash?= =?UTF-8?q?=20in=20file=20chooser=20(=E2=8C=98T)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This enables full path search. Closes #893. --- Frameworks/OakFilterList/src/FileChooser.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/OakFilterList/src/FileChooser.mm b/Frameworks/OakFilterList/src/FileChooser.mm index 5c8fec10..901c965e 100644 --- a/Frameworks/OakFilterList/src/FileChooser.mm +++ b/Frameworks/OakFilterList/src/FileChooser.mm @@ -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;