summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2023-02-24 08:18:55 +0100
committerChristian Schneider2023-02-24 08:18:55 +0100
commit5d4ba9a56f2f2cacd97b3dee0ec8c4738ea8c755 (patch)
treedcd990a6a613b44ad325273074d6347ea7c6b2ae
parentee42bc77965e4e4fbbea558b092e07623206c1c8 (diff)
downloaditools-5d4ba9a56f2f2cacd97b3dee0ec8c4738ea8c755.tar.gz
itools-5d4ba9a56f2f2cacd97b3dee0ec8c4738ea8c755.tar.bz2
itools-5d4ba9a56f2f2cacd97b3dee0ec8c4738ea8c755.zip
Add test if preg_quote is sufficient for special chars in pattern
-rwxr-xr-xtest/it.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/it.t b/test/it.t
index 34279ce..360c792 100755
--- a/test/it.t
+++ b/test/it.t
@@ -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ü",