mediawiki-extensions-Visual.../modules/ve-mw
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
..
ce Use boolean RegExp.test() instead of .match() where possible 2022-03-24 11:04:43 +01:00
dm Avoid/simplify possibly slow regular expressions 2022-03-24 11:20:01 +01:00
init Respect useeditwarning user option when tearing down target 2022-03-23 14:55:13 +00:00
preinit Use boolean RegExp.test() instead of .match() where possible 2022-03-24 11:04:43 +01:00
tests Preserve classes on broken media elements 2022-03-21 17:42:39 -04:00
themes
ui Avoid/simplify possibly slow regular expressions 2022-03-24 11:20:01 +01:00