Fix "delimit by whitespace" option

This commit is contained in:
1024jp 2016-03-05 17:24:34 +09:00
parent 4e69f64170
commit 179d7a3792
2 changed files with 2 additions and 3 deletions

View File

@ -21,6 +21,7 @@ develop
### Fixes
- Fix an issue where “Delimit by whitespace” option on text find didn't work.
- Fix some typos in German localization. (Thanks to Chris Eidhof!)

View File

@ -663,10 +663,8 @@ static const NSUInteger kMaxHistorySize = 20;
- (nullable OGRegularExpression *)regex
// ------------------------------------------------------
{
unsigned options = [self usesRegularExpression] ? [self options] : [self delimitByWhitespaceOption] | [self ignoreCaseOption];
return [OGRegularExpression regularExpressionWithString:[self sanitizedFindString]
options:options
options:[self options]
syntax:[self textFinderSyntax]
escapeCharacter:kEscapeCharacter];
}