@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | $res = preg_replace( |
48 | 48 | '/(["\'])(?:(?!\\1).)*+\\1/', |
49 | - "\\1\\1", // Replace the content with two of the quotes that were matched |
|
49 | + "\\1\\1", // Replace the content with two of the quotes that were matched |
|
50 | 50 | $input, |
51 | 51 | ); |
52 | 52 |
@@ -84,7 +84,6 @@ discard block |
||
84 | 84 | * |
85 | 85 | * Use possessive quantifiers (i.e. *+ and ++ instead of * and + respectively) to prevent backtracking |
86 | 86 | * and thus prevent a ReDOS. |
87 | - |
|
88 | 87 | * '/([a-z]++(?>-[a-z]++)*+)\s*+\(/' |
89 | 88 | * ( # Start a capturing group |
90 | 89 | * [a-z]++ # Match one or more lower-case alpha characters |
@@ -95,7 +94,7 @@ discard block |
||
95 | 94 | * ) # End of the capturing group |
96 | 95 | * \s*+ # Match zero or more whitespace characters, possessively |
97 | 96 | * \( # Match an opening parenthesis |
98 | - */ |
|
97 | + */ |
|
99 | 98 | |
100 | 99 | '/([a-z]++(?>-[a-z]++)*+)\\s*+\\(/', |
101 | 100 | $xpathExpression, |
@@ -146,7 +145,7 @@ discard block |
||
146 | 145 | * ) # End of the capturing group |
147 | 146 | * \s*+ # Match zero or more whitespace characters, possessively |
148 | 147 | * \( # Match an opening parenthesis |
149 | - */ |
|
148 | + */ |
|
150 | 149 | |
151 | 150 | '/([a-z]++(?>-[a-z]++)*+)\\s*+::/', |
152 | 151 | $xpathExpression, |