JSFiddle - React, Tailwind, and code Playground

by Frank Liu

JavaScript

const title = '   😄      测试置         顶文件夹    '
const x = title.replace(/\s+/g, '-')

console.log(x)