mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Make regex for method more performant to avoid catastrophic backtracking
This commit is contained in:
committed by
Mike van Riel
parent
8727095d6b
commit
51b773933d
@@ -117,7 +117,7 @@ final class Method extends BaseTag implements Factory\StaticMethod
|
|||||||
(?:[\w\|_\\\\]+)
|
(?:[\w\|_\\\\]+)
|
||||||
# array notation
|
# array notation
|
||||||
(?:\[\])*
|
(?:\[\])*
|
||||||
)*
|
)*+
|
||||||
)
|
)
|
||||||
\s+
|
\s+
|
||||||
)?
|
)?
|
||||||
|
|||||||
Reference in New Issue
Block a user