Skip to content

Commit

Permalink
Merge pull request #18608 from dcamper/hpcc-31729-datapatterns-profil…
Browse files Browse the repository at this point in the history
…e-9.6.x

HPCC-31729 DataPatterns.Profile() fails to identify all Unicode letters as letters

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored May 2, 2024
2 parents 1cbacfd + 1d439bf commit b226033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecllibrary/std/DataPatterns/Profile.ecl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b226033

Please sign in to comment.