To trim the domain from email and make value max 10 digits if it is more than 10 and ignore '.' if came in between . How can we do this?

后端 未结 0 1928
感情败类
感情败类 2021-01-03 04:58

To strip domain and allow max digit to 10 I am using this condition :

if (sender.indexOf(\'@\') != -1 ) {
     sender = sender.substring(0, Math.min(sender.in         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题