| 1 | # Test string processing differences between parsers |
| 2 | pattern: "(?P<message>.*)" |
| 3 | |
| 4 | inject: |
| 5 | # Test strings with embedded null bytes (potential parser difference) |
| 6 | - key: NULL_BYTE_STRING |
| 7 | value: "Before null\x00After null" |
| 8 | |
| 9 | # Test very long strings |
| 10 | - key: LONG_STRING |
| 11 | value: "This is a very long string that repeats many times to test buffer handling. This is a very long string that repeats many times to test buffer handling. This is a very long string that repeats many times to test buffer handling. This is a very long string that repeats many times to test buffer handling. This is a very long string that repeats many times to test buffer handling." |
| 12 | |
| 13 | # Test strings with all types of quotes |
| 14 | - key: MIXED_QUOTES |
| 15 | value: "Double \"quoted\" with 'single' and `backtick` quotes" |
| 16 | |
| 17 | # Test control characters |
| 18 | - key: CONTROL_CHARS |
| 19 | value: "Tab\tNewline\nCarriage\rReturn\fForm\bBackspace" |
| 20 | |
| 21 | # Test Unicode edge cases |
| 22 | - key: UNICODE_TEST |
| 23 | value: "Unicode: αβγ 中文 🚀 العربية" |
| 24 | |
| 25 | # Test zero-width characters |
| 26 | - key: ZERO_WIDTH |
| 27 | value: "Zero\u200Bwidth\u200Cjoiner\u200Dtest" |
| 28 | |
| 29 | # Test string with only whitespace |
| 30 | - key: WHITESPACE_ONLY |
| 31 | value: " \t\n\r " |
| 32 | |
| 33 | # Test string with regex metacharacters |
| 34 | - key: REGEX_CHARS |
| 35 | value: ".*?+[]{}()^$|\\special" |
| 36 | |
| 37 | # Test URL-encoded strings |
| 38 | - key: URL_ENCODED |
| 39 | value: "Hello%20World%21%40%23%24%25%5E%26%2A%28%29" |
| 40 | |
| 41 | # Test HTML entities |
| 42 | - key: HTML_ENTITIES |
| 43 | value: "<script>alert('test');</script>" |
| 44 | |
| 45 | # Test Base64-like strings |
| 46 | - key: BASE64_LIKE |
| 47 | value: "VGhpcyBpcyBhIHRlc3Qgc3RyaW5nIGZvciBiYXNlNjQgbGlrZSBkYXRh" |
| 48 | |
| 49 | # Test strings with newlines in different formats |
| 50 | - key: UNIX_NEWLINES |
| 51 | value: "Line1\nLine2\nLine3" |
| 52 | |
| 53 | - key: WINDOWS_NEWLINES |
| 54 | value: "Line1\r\nLine2\r\nLine3" |
| 55 | |
| 56 | - key: MAC_NEWLINES |
| 57 | value: "Line1\rLine2\rLine3" |
| 58 | |
| 59 | rewrite: |
| 60 | # Test string matching with special characters |
| 61 | - key: SPECIAL_MATCH_TEST |
| 62 | match: ".*[\\x00-\\x1f].*" # Match control characters |
| 63 | value: "Contains control characters" |
| 64 | inject: yes |
| 65 | |
| 66 | # Test very long replacement |
| 67 | - key: LONG_REPLACEMENT |
| 68 | value: "${message} - This replacement text is intentionally very long to test how the parser handles large string operations and memory allocation during variable substitution processing." |
| 69 | inject: yes |