mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix "delimit by whitespace" option
This commit is contained in:
parent
4e69f64170
commit
179d7a3792
@ -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!)
|
||||
|
||||
|
||||
|
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user