File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { WAMessageKey } from '@whiskeysockets/baileys' ;
22
33const isJid = ( v : string ) => {
4- const regexp = new RegExp ( / ^ \d + @ ( s .w h a t s a p p .n e t | g .u s | b r o a d c a s t | n e w s l e t t e r ) $ / i) ;
4+ const regexp = new RegExp ( / ^ \w + @ ( s .w h a t s a p p .n e t | g .u s | b r o a d c a s t | n e w s l e t t e r ) $ / i) ;
55 return regexp . test ( v ) ;
66} ;
77
Original file line number Diff line number Diff line change @@ -1248,7 +1248,7 @@ export class WAStartupService {
12481248 }
12491249
12501250 private createJid ( number : string ) : string {
1251- const regexp = new RegExp ( / ^ \d + @ ( s .w h a t s a p p .n e t | g .u s | l i d | b r o a d c a s t | n e w s l e t t e r ) $ / i) ;
1251+ const regexp = new RegExp ( / ^ \w + @ ( s .w h a t s a p p .n e t | g .u s | l i d | b r o a d c a s t | n e w s l e t t e r ) $ / i) ;
12521252 if ( regexp . test ( number ) ) {
12531253 return number ;
12541254 }
You can’t perform that action at this time.
0 commit comments