diff options
author | Christian Schneider | 2023-02-24 08:18:55 +0100 |
---|---|---|
committer | Christian Schneider | 2023-02-24 08:18:55 +0100 |
commit | 5d4ba9a56f2f2cacd97b3dee0ec8c4738ea8c755 (patch) | |
tree | dcd990a6a613b44ad325273074d6347ea7c6b2ae /test | |
parent | ee42bc77965e4e4fbbea558b092e07623206c1c8 (diff) | |
download | itools-5d4ba9a56f2f2cacd97b3dee0ec8c4738ea8c755.tar.gz itools-5d4ba9a56f2f2cacd97b3dee0ec8c4738ea8c755.tar.bz2 itools-5d4ba9a56f2f2cacd97b3dee0ec8c4738ea8c755.zip |
Add test if preg_quote is sufficient for special chars in pattern
Diffstat (limited to 'test')
-rwxr-xr-x | test/it.t | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -270,6 +270,12 @@ _match( ['all' => 1, 'pattern_order' => 1] ); +_match( + preg_quote('a/b!c(d\\e'), 'faa/b!c(d\\ear', + 'a/b!c(d\\e', + 'match with preg_quote of special characters in pattern' +); + ini_set('default_charset', 'iso-8859-1'); _match( 'aöBÜ', "AÖbü", |