mediawiki-extensions-CodeMi.../resources/lib
MusikAnimal b464df36ab CodeMirrorSearch: catch exceptions from invalid regex input
Invalid regular expressions would error out on SearchQuery's getCursor()
method. This is arguably an upstream bug, but we want to inform the user
of invalid input anyway. We now show "Invalid regular expression" where
the "$1 of $2" codemirror-find-results message is normally shown, and we
add the error class to the Codex input. This is to be consistent with
how the 2017 editor behaves.

Also disable autocompletion which is more often distracting that
helpful for a search field.

Bump codemirror/search to include a fix where the selection isn't
updated after a regex replacement.
See https://discuss.codemirror.net/t/8832

Bug: T371436
Change-Id: I68722da98ef4925439caa64e8f3366031d56cf8e
2024-11-22 19:42:11 +00:00
..
codemirror resources: Manage upstream CodeMirror using ManageForeignResources 2023-09-21 12:40:53 +01:00
codemirror6.bundle.dist.js CodeMirrorSearch: catch exceptions from invalid regex input 2024-11-22 19:42:11 +00:00
foreign-resources.yaml resources: Manage upstream CodeMirror using ManageForeignResources 2023-09-21 12:40:53 +01:00