From 5701a4658cfb293d15a3027d9704f335904a4d0c Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Fri, 20 Jun 2014 14:34:46 +0530 Subject: [PATCH] [ticket/12729] Move ALPHA_DOTS to above ALPHA_SPACERS Have easier matches first for better performance PHPBB3-12729 --- phpBB/phpbb/profilefields/type/type_string_common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/profilefields/type/type_string_common.php b/phpBB/phpbb/profilefields/type/type_string_common.php index 014950c15f..91198deec0 100644 --- a/phpBB/phpbb/profilefields/type/type_string_common.php +++ b/phpBB/phpbb/profilefields/type/type_string_common.php @@ -20,8 +20,8 @@ abstract class type_string_common extends type_base 'NUMBERS_ONLY' => '[0-9]+', 'ALPHA_ONLY' => '[\w]+', 'ALPHA_UNDERSCORE' => '[\w_]+', - 'ALPHA_SPACERS' => '[\w_\+\. \-\[\]]+', 'ALPHA_DOTS' => '[\w.]+', + 'ALPHA_SPACERS' => '[\w_\+\. \-\[\]]+', ); /**