mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Disable the "literal" option when regex search is enabled (#14936)
GitOrigin-RevId: 0710c60b517cfda19037215c076878c65c418396
This commit is contained in:
parent
d1cfc5a783
commit
db76d1c316
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ const CodeMirrorSearchForm: FC = () => {
|
||||||
replace: data.replace as string,
|
replace: data.replace as string,
|
||||||
caseSensitive: data.caseSensitive === 'on',
|
caseSensitive: data.caseSensitive === 'on',
|
||||||
regexp: data.regexp === 'on',
|
regexp: data.regexp === 'on',
|
||||||
literal: true,
|
literal: data.regexp !== 'on',
|
||||||
wholeWord: data.wholeWord === 'on',
|
wholeWord: data.wholeWord === 'on',
|
||||||
scope: getStoredSelection(view.state)?.ranges,
|
scope: getStoredSelection(view.state)?.ranges,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue