Skip to content

Commit 482a195

Browse files
committed
fix reg exp
1 parent f53ed7b commit 482a195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const serverStr = `
6868
const proxyStr = `
6969
proxy: {
7070
// eslint-disable-next-line no-useless-escape
71-
'^(.+)\\.php[\\/?#]': 'http://localhost:8000/',
71+
'^(.+)\\.php([\\/?#])?': 'http://localhost:8000/',
7272
},`
7373
if (!viteConfigFileContent.match(regexStartOfServer)) {
7474
viteConfigFileContent = viteConfigFileContent.replace(regexStartOfConfig, `$1${serverStr}`)

0 commit comments

Comments
 (0)