File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Assets/BossRoom/Scripts/Client/UI/Lobby Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ public class LobbyJoiningUI : MonoBehaviour
24
24
IDisposable m_Subscriptions ;
25
25
List < LobbyListItemUI > m_LobbyListItems = new List < LobbyListItemUI > ( ) ;
26
26
27
- // Adding this here until it is available in the Lobby package itself
28
- const string k_LobbyJoinCodeAlphabet = "ACDEFGHJKMNPRTWXY3467" ;
29
- const string k_JoinCodeSanitizationRegexPattern = "[^" + k_LobbyJoinCodeAlphabet + "]" ;
30
-
31
27
void Awake ( )
32
28
{
33
29
m_LobbyListItemPrototype . gameObject . SetActive ( false ) ;
@@ -72,7 +68,7 @@ public void SanitizeJoinCodeInputText()
72
68
73
69
string SanitizeJoinCode ( string dirtyString )
74
70
{
75
- return Regex . Replace ( dirtyString . ToUpper ( ) , k_JoinCodeSanitizationRegexPattern , "" ) ;
71
+ return Regex . Replace ( dirtyString . ToUpper ( ) , "[^A-Z0-9]" , "" ) ;
76
72
}
77
73
78
74
public void OnJoinButtonPressed ( )
You can’t perform that action at this time.
0 commit comments