@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | abstract class Mailcode_Translator_Syntax_ApacheVelocity extends Mailcode_Translator_Command |
| 25 | 25 | { |
| 26 | 26 | /** |
| 27 | - * @var string[] |
|
| 28 | - */ |
|
| 27 | + * @var string[] |
|
| 28 | + */ |
|
| 29 | 29 | private array $regexSpecialChars = array( |
| 30 | 30 | '?', |
| 31 | 31 | '.', |
@@ -50,15 +50,15 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * Filters the string for use in an Apache Velocity (Java) |
|
| 54 | - * regex string: escapes all special characters. |
|
| 55 | - * |
|
| 56 | - * Velocity does its own escaping, so no need to escape special |
|
| 57 | - * characters as if they were a javascript string. |
|
| 58 | - * |
|
| 59 | - * @param string $string |
|
| 60 | - * @return string |
|
| 61 | - */ |
|
| 53 | + * Filters the string for use in an Apache Velocity (Java) |
|
| 54 | + * regex string: escapes all special characters. |
|
| 55 | + * |
|
| 56 | + * Velocity does its own escaping, so no need to escape special |
|
| 57 | + * characters as if they were a javascript string. |
|
| 58 | + * |
|
| 59 | + * @param string $string |
|
| 60 | + * @return string |
|
| 61 | + */ |
|
| 62 | 62 | public function filterRegexString(string $string) : string |
| 63 | 63 | { |
| 64 | 64 | // Special case: previously escaped quotes. |