From 057d2bf77d3ba2812e794323ece86b9b57383492 Mon Sep 17 00:00:00 2001 From: AsifNawaz-cnic Date: Thu, 25 Jul 2024 17:29:39 +0100 Subject: [PATCH] perf(converterfactory.php): include '.art' TLD in pattern matching for transitional processing --- src/IDNA/Factory/ConverterFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDNA/Factory/ConverterFactory.php b/src/IDNA/Factory/ConverterFactory.php index 0c023bd..e108236 100644 --- a/src/IDNA/Factory/ConverterFactory.php +++ b/src/IDNA/Factory/ConverterFactory.php @@ -142,6 +142,6 @@ public static function transitionalProcessing($keyword, $options = []) return $options["transitionalProcessing"]; } - return mb_ereg("\./(be|ca|de|fr|pm|re|swiss|tf|wf|yt)\.?$/i", $options["domain"] ?? $keyword) !== false; + return mb_ereg("\./(art|be|ca|de|fr|pm|re|swiss|tf|wf|yt)\.?$/i", $options["domain"] ?? $keyword) !== false; } }