From 1d439bf2b8c1b3eed11cb6de9d5cc8e82ba33c79 Mon Sep 17 00:00:00 2001 From: "Dan S. Camper" Date: Thu, 2 May 2024 08:06:11 -0500 Subject: [PATCH] HPCC-31729 DataPatterns.Profile() fails to identify all Unicode letters as letters --- ecllibrary/std/DataPatterns/Profile.ecl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecllibrary/std/DataPatterns/Profile.ecl b/ecllibrary/std/DataPatterns/Profile.ecl index 65643ed6317..877d1e085af 100644 --- a/ecllibrary/std/DataPatterns/Profile.ecl +++ b/ecllibrary/std/DataPatterns/Profile.ecl @@ -617,7 +617,7 @@ EXPORT Profile(inFile, #UNIQUENAME(_MapUpperCharUni); LOCAL %_MapUpperCharUni%(UNICODE s) := REGEXREPLACE(u'\\p{Lu}', s, u'A'); #UNIQUENAME(_MapLowerCharUni); - LOCAL %_MapLowerCharUni%(UNICODE s) := REGEXREPLACE(u'[[\\p{Ll}][\\p{Lt}][\\p{Lm}][\\p{Lo}]]', s, u'a'); + LOCAL %_MapLowerCharUni%(UNICODE s) := REGEXREPLACE(u'[\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}]', s, u'a'); #UNIQUENAME(_MapDigitUni); LOCAL %_MapDigitUni%(UNICODE s) := REGEXREPLACE(u'[1-9]', s, u'9'); // Leave '0' as-is and replace with '9' later #UNIQUENAME(_MapAllUni);