Sumit has uploaded a new change for review. https://gerrit.wikimedia.org/r/253834
Change subject: TextExtracts allow sentence end with numbers ...................................................................... TextExtracts allow sentence end with numbers Allows sentences to end with numbers before a full stop in query extractsentences. Bug: T115795 Change-Id: I9cbf487601d4165b490696d38d5fcbcf6d8f4637 --- M includes/ExtractFormatter.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TextExtracts refs/changes/34/253834/1 diff --git a/includes/ExtractFormatter.php b/includes/ExtractFormatter.php index 689fd84..a6581f3 100644 --- a/includes/ExtractFormatter.php +++ b/includes/ExtractFormatter.php @@ -80,7 +80,7 @@ public static function getFirstSentences( $text, $requestedSentenceCount ) { // Based on code from OpenSearchXml by Brion Vibber $endchars = array( - '([^\d])\.\s', '\!\s', '\?\s', // regular ASCII + '\.\s', '\!\s', '\?\s', // regular ASCII '。', // full-width ideographic full-stop '.', '!', '?', // double-width roman forms '。', // half-width ideographic full stop -- To view, visit https://gerrit.wikimedia.org/r/253834 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9cbf487601d4165b490696d38d5fcbcf6d8f4637 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TextExtracts Gerrit-Branch: master Gerrit-Owner: Sumit <asthana.sumi...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits