mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix find bound with regex
This commit is contained in:
parent
93281f94b0
commit
add85a6d5d
@ -10,6 +10,11 @@ develop
|
||||
- Now, AppleScript's script bundles can specify execution mode to enable running the script inside the application Sandbox (thanks to Kaito Udagawa!).
|
||||
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix an issue on the regular expression search where the look-after did not match the word just behind the selection.
|
||||
|
||||
|
||||
|
||||
3.1.3 (180)
|
||||
--------------------------
|
||||
|
@ -801,7 +801,7 @@ final class TextFinder: NSResponder, TextFinderSettingsProvider {
|
||||
guard let string = string, !string.isEmpty else { return }
|
||||
|
||||
let regex = self.regex()!
|
||||
let options: NSRegularExpression.MatchingOptions = [.withoutAnchoringBounds]
|
||||
let options: NSRegularExpression.MatchingOptions = [.withTransparentBounds, .withoutAnchoringBounds]
|
||||
|
||||
for scopeRange in ranges {
|
||||
regex.enumerateMatches(in: string, options: options, range: scopeRange, using: { (result, flags, stop) in
|
||||
|
Loading…
Reference in New Issue
Block a user