一串纯英文+符合的字符串,如何才能让字符串换行的同时,阻止英文单词的换行?-灵析社区

我想对你说

因为正儿八经的英文是用空格分割单词的: > GitHub Actions makes it easy to automate all your software workflows, now > with world-class CI/CD. Build, test, and deploy your code right from GitHub. > Make code reviews, branch management, and issue triaging work the way you > want. 👆逗号和句号后面是有空格的。 如果数据源就是这个样子的话,JS 预处理一下就行了: {{ 'CD01,MW13,1CD02'.replaceAll(/(,|\.)(\w)/g, '$1 $2') }} .content{ white-space: normal }

阅读量:1

点赞量:0

问AI