mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-18 01:30:32 +00:00
4584c6d2b5
While this is not really a bottleneck (usually the list of classes is short) I was still curious. Why create an object, explode a string into an array (even using a regex) and search the array if we can do the same with a single regex? This will be beneficial for other codebases, notably DiscussionTools. Change-Id: If9252a97562542e7a4bec29edcc6e8dee0fb8221 |
||
---|---|---|
src/Parsoid |