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, })