From 254feee7384be40cd4c7392098adbeaea18746cf Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 5 Jun 2019 17:34:37 +0200 Subject: [PATCH] Changed ordering of profile fields. --- src/Users/profile.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Users/profile.php b/src/Users/profile.php index cdae0a8a..518375a0 100644 --- a/src/Users/profile.php +++ b/src/Users/profile.php @@ -11,17 +11,6 @@ define('MSZ_USER_PROFILE_FIELD_SET_ERRORS', [ define('MSZ_USER_PROFILE_FIELD_FORMAT', 'user_%s'); define('MSZ_USER_PROFILE_FIELDS', [ - 'twitter' => [ - 'name' => 'Twitter', - 'regex' => '#^(?:https?://(?:www\.)?twitter.com/(?:\#!\/)?)?@?([A-Za-z0-9_]{1,20})/?$#u', - 'link' => 'https://twitter.com/%s', - 'format' => '@%s', - ], - 'osu' => [ - 'name' => 'osu!', - 'regex' => '#^(?:https?://osu.ppy.sh/u(?:sers)?/)?([a-zA-Z0-9-\[\]_ ]{1,20})/?$#u', - 'link' => 'https://osu.ppy.sh/users/%s', - ], 'website' => [ 'name' => 'Website', 'type' => 'url', @@ -41,10 +30,11 @@ define('MSZ_USER_PROFILE_FIELDS', [ 'UC[a-zA-Z0-9-_]{1,22}' => 'Go to Channel', ], ], - 'steam' => [ - 'name' => 'Steam', - 'regex' => '#^(?:https?://(?:www.)?steamcommunity.com/(?:id|profiles)/)?([a-zA-Z0-9_-]{2,100})/?$#u', - 'link' => 'https://steamcommunity.com/id/%s', + 'twitter' => [ + 'name' => 'Twitter', + 'regex' => '#^(?:https?://(?:www\.)?twitter.com/(?:\#!\/)?)?@?([A-Za-z0-9_]{1,20})/?$#u', + 'link' => 'https://twitter.com/%s', + 'format' => '@%s', ], 'ninswitch' => [ 'name' => 'Nintendo Switch', @@ -56,6 +46,16 @@ define('MSZ_USER_PROFILE_FIELDS', [ 'regex' => '#^(?:https?://(?:www.)?twitch.tv/)?([0-9A-Za-z_]{3,25})/?$#u', 'link' => 'https://twitch.tv/%s', ], + 'steam' => [ + 'name' => 'Steam', + 'regex' => '#^(?:https?://(?:www.)?steamcommunity.com/(?:id|profiles)/)?([a-zA-Z0-9_-]{2,100})/?$#u', + 'link' => 'https://steamcommunity.com/id/%s', + ], + 'osu' => [ + 'name' => 'osu!', + 'regex' => '#^(?:https?://osu.ppy.sh/u(?:sers)?/)?([a-zA-Z0-9-\[\]_ ]{1,20})/?$#u', + 'link' => 'https://osu.ppy.sh/users/%s', + ], 'lastfm' => [ 'name' => 'Last.fm', 'regex' => '#^(?:https?://(?:www.)?last.fm/user/)?([a-zA-Z]{1}[a-zA-Z0-9_-]{1,14})/?$#u',