Skip to content

Commit e8203b3

Browse files
committed
fix: 修复订阅链接输入框格式化问题
1 parent d4f2355 commit e8203b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store-front-end",
3-
"version": "2.15.14",
3+
"version": "2.15.15",
44
"private": true,
55
"scripts": {
66
"dev": "vite --host",

src/views/SubEditor.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,8 @@ const urlValidator = (val: string): Promise<boolean> => {
983983
// 去除空格
984984
const strTrim = (prop: string) => {
985985
if (typeof form[prop] === "string") {
986-
// 正则表达式去除首尾空格,
987-
form[prop] = form[prop].replace(/[^\S\r\n]+/g, '')
986+
// 去除首尾空格
987+
form[prop] = form[prop].trim();
988988
}
989989
}
990990
// 图标

0 commit comments

Comments
 (0)