From 576e96d5b5d5bf328fdeba527383754517757033 Mon Sep 17 00:00:00 2001 From: Anduin2017 Date: Thu, 8 Aug 2019 18:12:25 +0800 Subject: [PATCH] Allow group with space. --- src/app/Controllers/friends.component.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/Controllers/friends.component.ts b/src/app/Controllers/friends.component.ts index e03f7582..b77bf439 100644 --- a/src/app/Controllers/friends.component.ts +++ b/src/app/Controllers/friends.component.ts @@ -48,10 +48,6 @@ export class FriendsComponent implements OnInit { showCancelButton: true, }).then(input => { if (input.value) { - if (input.value.includes(' ')) { - Swal.fire('Try again', 'Group name can\'t contain whitespaces.', 'error'); - return; - } if (input.value.length < 3 || input.value.length > 25) { Swal.fire('Try again', 'Group name length must between three and twenty five.', 'error'); return;