排除异常空格
This commit is contained in:
		| @@ -77,7 +77,7 @@ const start = () => { | |||||||
|       if (/appName/.test(vue)) { |       if (/appName/.test(vue)) { | ||||||
|         let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1'), |         let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1'), | ||||||
|             title = appName.replace(/(appName:|["'])/g, '') |             title = appName.replace(/(appName:|["'])/g, '') | ||||||
|         app.style = {navigationBarTitleText: title} |         app.style = {navigationBarTitleText: title.trim()} | ||||||
|       } |       } | ||||||
|       json.pages.push(app) |       json.pages.push(app) | ||||||
|     } |     } | ||||||
| @@ -91,7 +91,7 @@ const start = () => { | |||||||
|       if (/appName/.test(vue)) { |       if (/appName/.test(vue)) { | ||||||
|         let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1'), |         let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1'), | ||||||
|             title = appName.replace(/(appName:|["'])/g, '') |             title = appName.replace(/(appName:|["'])/g, '') | ||||||
|         app.style = {navigationBarTitleText: title} |         app.style = {navigationBarTitleText: title.trim()} | ||||||
|       } |       } | ||||||
|       json.pages.push(app) |       json.pages.push(app) | ||||||
|     } |     } | ||||||
| @@ -105,7 +105,7 @@ const start = () => { | |||||||
|       if (/appName/.test(vue)) { |       if (/appName/.test(vue)) { | ||||||
|         let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1'), |         let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1'), | ||||||
|             title = appName.replace(/(appName:|["'])/g, '') |             title = appName.replace(/(appName:|["'])/g, '') | ||||||
|           app.style = {navigationBarTitleText: title} |         app.style = {navigationBarTitleText: title.trim()} | ||||||
|       } |       } | ||||||
|       json.pages.push(app) |       json.pages.push(app) | ||||||
|     } |     } | ||||||
| @@ -119,7 +119,7 @@ const start = () => { | |||||||
|       if (/appName/.test(vue)) { |       if (/appName/.test(vue)) { | ||||||
|         let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1'), |         let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1'), | ||||||
|             title = appName.replace(/(appName:|["'])/g, '') |             title = appName.replace(/(appName:|["'])/g, '') | ||||||
|           app.style = {navigationBarTitleText: title} |         app.style = {navigationBarTitleText: title.trim()} | ||||||
|       } |       } | ||||||
|       json.pages.push(app) |       json.pages.push(app) | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user