How can I use this 2 replace methods combined instead of chaining?

前端 未结 0 414
忘了有多久
忘了有多久 2020-11-29 00:55

I have the following method that makes some changes in the passed string:

const updatedText = text.replace(specCharcombination, \'\').replace(/\\ +/g, \' \')
         


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