Go to file
Thiemo Kreuz acba72e011 Remove expensive regular expression that doesn't have any effect
See, this last part of the compiled regular expression is wrapped in
an (…)*, which means it is entirely optional. It does not make any
difference if this part is found or not. The compiled regular
expression matches with or without any of these "line ending"
fragments being present.

I can not really figure out what the intention of this was. A line
ending anchor ($) is not missing – I'm pretty sure about this.
Otherwise it could not detect signatures that are wrapped in more
than a single HTML tag, for example.

Instead of fixing it I decided to remove it. The tests should show
this code was not needed.

The motivation for this patch is to improve performance. This part of
the regular expression is quite heavy and can cause a lot of
backtracking for literally zero benefit.

Bug: T203930
Bug: T204291
Change-Id: Ia5323b401b947edeb7094d7eec131ba6c80edf70
2018-09-25 18:15:49 +02:00
db_patches Merge "Add a primary key to the echo_notification table" 2016-11-23 18:35:53 +00:00
i18n Localisation updates from https://translatewiki.net. 2018-09-24 09:18:00 +02:00
images Unify BetaFeatures SVG screenshot markup 2017-12-19 09:01:12 -08:00
includes Remove expensive regular expression that doesn't have any effect 2018-09-25 18:15:49 +02:00
maintenance Split long lines over 140 chars 2018-08-25 12:51:14 +02:00
modules Merge "Replace deprecated 'advanced' by renamed to 'settings' icon" 2018-09-12 16:45:29 +00:00
scripts Remove obsolete scripts/generatecss.php 2018-09-09 17:07:26 -07:00
tests Add @group Database to unit test 2018-09-14 22:29:34 +02:00
.eslintrc.json build: Update linters 2018-09-11 23:46:52 +01:00
.gitignore Remove Ruby browser tests 2017-12-20 12:29:01 +01:00
.gitreview Whoops, track not trace 2016-10-24 17:02:28 -07:00
.mailmap Add Kunal, Moriel, Jon to credits; add mailmap file 2015-12-15 16:30:19 -08:00
.phpcs.xml Fix phpunit @group annotation 2018-09-09 20:41:59 +02:00
.stylelintrc.json build: Update linters 2018-02-04 21:23:28 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-03 01:46:10 +00:00
composer.json Build: Make pass phan-taint-check 1.5.0 2018-09-14 02:04:03 +00:00
COPYING Add COPYING 2014-01-24 16:00:24 -08:00
Echo.alias.php Add special page alias for Serbian in latin variant 2018-08-15 15:49:16 +02:00
echo.sql Merge "Add a primary key to the echo_notification table" 2016-11-23 18:35:53 +00:00
extension.json Rename ApiCrossWikiBase -> ApiCrossWiki and make it a trait 2018-08-29 18:03:16 -07:00
Gruntfile.js build: Extend 'svgmin' options and move to 'minify' task 2018-05-29 10:26:22 -07:00
jsduck.external.js jsduck: Remove custom @source tag 2016-09-21 00:51:46 +01:00
jsduck.json Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
jsduck_custom_tags.rb jsduck: Remove custom @source tag 2016-09-21 00:51:46 +01:00
Makefile Remove obsolete scripts/generatecss.php 2018-09-09 17:07:26 -07:00
package.json build: Update linters 2018-09-11 23:46:52 +01:00
RELEASE_NOTES BREAKING CHANGE: Use ISO 8601 for 'ts' in cross-wiki summary. 2016-07-27 17:00:05 -04:00