Skip to content

[Finder] Merge regexps for performance #15828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Follow up of #15826. May be superseded by an other PR from @stof, still submitting for history at least.

@@ -61,7 +61,7 @@ class Regex implements ValueInterface
*/
public static function create($expr)
{
if (preg_match('/^(.{3,}?)([imsxuADU]*)$/', $expr, $m)) {
if (preg_match('/^(.{2,}?)([imsxuADU]*)$/', $expr, $m)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty regexps (//) are valid

@fabpot
Copy link
Member

fabpot commented Oct 1, 2015

What do we do with this PR?

@fabpot
Copy link
Member

fabpot commented Oct 6, 2015

Closing as this PR uses the Regex class that does not exist anymore. @stof if you have a better idea, feel free to open a PR :)

@fabpot fabpot closed this Oct 6, 2015
@nicolas-grekas nicolas-grekas deleted the finder-merge-rx branch October 10, 2015 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants