mediawiki-extensions-Visual.../modules/ve-mw/ui/widgets
Thiemo Kreuz 9fee89890a Avoid/simplify possibly slow regular expressions
In detail:

* Just compare strings where possible. Sometimes the first character
alone is distinct enough.

* Add missing ^ anchor to avoid possibly running unbound pattern
searches. This is not strictly necessary when we know the input is
fixed-length. Still I find it more robust and more obvious what it's
meant to do. Not to "search for some match somewhere" but to check if
the input _is_ a match.

Change-Id: I9b7651d8ec1266521c22b38ccabb95a947903f72
2022-03-24 11:20:01 +01:00
..
ve.ui.MWAceEditorWidget.js Fix resize of MWAceEditorWidget when setting up 2022-03-18 22:30:54 +00:00
ve.ui.MWCategoryInputWidget.js eslint: Enable no-jquery/no-append-html 2021-12-16 02:04:11 +01:00
ve.ui.MWCategoryItemWidget.js
ve.ui.MWCategoryPopupWidget.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWCategoryWidget.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWEditSummaryWidget.js Avoid/simplify possibly slow regular expressions 2022-03-24 11:20:01 +01:00
ve.ui.MWEducationPopupWidget.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWExternalLinkAnnotationWidget.js Prefere ve.extendObject over $.extend 2021-11-15 21:30:19 +00:00
ve.ui.MWGalleryGroupWidget.js Prefere ve.extendObject over $.extend 2021-11-15 21:30:19 +00:00
ve.ui.MWGalleryItemWidget.js
ve.ui.MWInternalLinkAnnotationWidget.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWLazyMultilineTextInputWidget.js
ve.ui.MWMediaInfoFieldWidget.js Use boolean RegExp.test() instead of .match() where possible 2022-03-24 11:04:43 +01:00
ve.ui.MWMoreParametersResultWidget.js
ve.ui.MWNoParametersResultWidget.js
ve.ui.MWParameterCheckboxInputWidget.js
ve.ui.MWParameterResultWidget.js
ve.ui.MWParameterSearchWidget.js
ve.ui.MWPreTextInputWidget.js
ve.ui.MWTargetWidget.js
ve.ui.MWTemplateTitleInputWidget.js Enforce formatversion=2 in template search 2022-01-05 12:49:44 +01:00
ve.ui.MWTocWidget.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWTransclusionOutlineButtonWidget.js Wire move/delete hotkeys to button functionallity 2022-02-08 15:41:01 +01:00
ve.ui.MWTransclusionOutlineParameterSelectWidget.js Extract template scrollToTop method 2022-03-11 12:30:51 +01:00
ve.ui.MWTransclusionOutlineParameterWidget.js Add and fix default values in parameter documentation 2022-02-21 13:19:21 +00:00
ve.ui.MWTransclusionOutlinePartWidget.js Add and fix default values in parameter documentation 2022-02-21 13:19:21 +00:00
ve.ui.MWTransclusionOutlinePlaceholderWidget.js
ve.ui.MWTransclusionOutlineTemplateWidget.js Fix hiding unused template parameters sometimes not working 2022-03-22 15:41:55 +01:00
ve.ui.MWTransclusionOutlineToggleUnusedWidget.js Streamline hide unused handling 2022-03-11 12:02:32 +01:00
ve.ui.MWTransclusionOutlineWidget.js Never collapse newly added templates in transclusion dialog 2022-02-22 11:37:21 +01:00
ve.ui.MWTransclusionOutlineWikitextWidget.js