We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bec85f commit 2926a24Copy full SHA for 2926a24
rules/CodeQuality/Rector/FuncCall/SimplifyRegexPatternRector.php
@@ -21,12 +21,12 @@ final class SimplifyRegexPatternRector extends AbstractRector
21
* @var array<string, string>
22
*/
23
private const COMPLEX_PATTERN_TO_SIMPLE = [
24
- '[0-9]' => '\\\d',
25
- '[a-zA-Z0-9_]' => '\\\w',
26
- '[A-Za-z0-9_]' => '\\\w',
27
- '[0-9a-zA-Z_]' => '\\\w',
28
- '[0-9A-Za-z_]' => '\\\w',
29
- '[\r\n\t\f\v ]' => '\\\s',
+ '[0-9]' => "\d",
+ '[a-zA-Z0-9_]' => "\w",
+ '[A-Za-z0-9_]' => "\w",
+ '[0-9a-zA-Z_]' => "\w",
+ '[0-9A-Za-z_]' => "\w",
+ '[\r\n\t\f\v ]' => "\s",
30
];
31
32
public function __construct(
0 commit comments