Index: languages/messages/MessagesAr.php
===================================================================
--- languages/messages/MessagesAr.php	(revision 51205)
+++ languages/messages/MessagesAr.php	(working copy)
@@ -396,7 +396,7 @@
  * the first group, and the remainder of the string as the second group. Modified to match
  * Arabic trails too.
  */
-$linkTrail = '/^([a-z\x{0600}-\x{06FF}]+)(.*)$/suD';
+$linkTrail = '/^([a-zء-ي]+)(.*)$/sDu';
 
 $imageFiles = array(
 	'button-bold'     => 'ar/button_bold.png',