We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4f2355 commit e8203b3Copy full SHA for e8203b3
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "sub-store-front-end",
3
- "version": "2.15.14",
+ "version": "2.15.15",
4
"private": true,
5
"scripts": {
6
"dev": "vite --host",
src/views/SubEditor.vue
@@ -983,8 +983,8 @@ const urlValidator = (val: string): Promise<boolean> => {
983
// 去除空格
984
const strTrim = (prop: string) => {
985
if (typeof form[prop] === "string") {
986
- // 正则表达式去除首尾空格,
987
- form[prop] = form[prop].replace(/[^\S\r\n]+/g, '')
+ // 去除首尾空格
+ form[prop] = form[prop].trim();
988
}
989
990
// 图标
0 commit comments