jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/368205 )

Change subject: Add normalization of U+02BC
......................................................................


Add normalization of U+02BC

DEPLOY: This will require running the the recalcualte maint script:
RecalculateCognateNormalizedHashes...

Change-Id: Ia458c1a1c1a588eac6c28f07c7ab590123205eda
---
M src/StringNormalizer.php
M tests/phpunit/StringNormalizerUnitTest.php
2 files changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Ladsgroup: Looks good to me, approved
  jenkins-bot: Verified
  Thiemo Mättig (WMDE): Looks good to me, but someone else must approve



diff --git a/src/StringNormalizer.php b/src/StringNormalizer.php
index d9e5743..46d80a8 100644
--- a/src/StringNormalizer.php
+++ b/src/StringNormalizer.php
@@ -18,10 +18,11 @@
        private $replacements = [
                // Normalized to U+0027
                '’' => '\'', // U+2019
+               'ʼ' => '\'', // U+02BC
                // Normalized to U+002EU+002EU+002E
                '…' => '...', // U+2026
                // Normalized to U+005F
-               ' ' => '_',
+               ' ' => '_', // U+0020
        ];
 
        /**
diff --git a/tests/phpunit/StringNormalizerUnitTest.php 
b/tests/phpunit/StringNormalizerUnitTest.php
index 94f36c6..cc54b3e 100644
--- a/tests/phpunit/StringNormalizerUnitTest.php
+++ b/tests/phpunit/StringNormalizerUnitTest.php
@@ -18,6 +18,7 @@
                        [ 'Foo bar', 'Foo_bar' ],
                        [ 'Apostrophe’', 'Apostrophe\'' ],
                        [ 'ellipsis…', 'ellipsis...' ],
+                       [ 'cʼh', 'c\'h' ],
                ];
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/368205
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia458c1a1c1a588eac6c28f07c7ab590123205eda
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Cognate
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: WMDE-Fisch <[email protected]>
Gerrit-Reviewer: WMDE-leszek <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to