From db76d1c3167ebee53bfcaf4af53fadc3be8eb048 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 27 Sep 2023 11:49:46 +0100 Subject: [PATCH] Disable the "literal" option when regex search is enabled (#14936) GitOrigin-RevId: 0710c60b517cfda19037215c076878c65c418396 --- .../source-editor/components/codemirror-search-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/source-editor/components/codemirror-search-form.tsx b/services/web/frontend/js/features/source-editor/components/codemirror-search-form.tsx index bd110ae9c3..270949c023 100644 --- a/services/web/frontend/js/features/source-editor/components/codemirror-search-form.tsx +++ b/services/web/frontend/js/features/source-editor/components/codemirror-search-form.tsx @@ -99,7 +99,7 @@ const CodeMirrorSearchForm: FC = () => { replace: data.replace as string, caseSensitive: data.caseSensitive === 'on', regexp: data.regexp === 'on', - literal: true, + literal: data.regexp !== 'on', wholeWord: data.wholeWord === 'on', scope: getStoredSelection(view.state)?.ranges, })