tzfun / vue-web-terminal

A beautiful web-side command line window plugin (simulating a terminal).
https://tzfun.github.io/vue-web-terminal/
Apache License 2.0
254 stars 31 forks source link

输入?时产生报错 #65

Closed Xuwznln closed 9 months ago

Xuwznln commented 10 months ago

Bug description 输入?时产生报错

Reproduce environment:

Detailed Description ERROR Invalid regular expression: /?/i: Nothing to repeat SyntaxError: Invalid regular expression: /?/i: Nothing to repeat at new RegExp (<anonymous>) at Proxy._searchCmd (webpack://vue-unipaper/./node_modules/vue-web-terminal/lib/vue-web-terminal.js?:5747:19) at Proxy._onInput (webpack://vue-unipaper/./node_modules/vue-web-terminal/lib/vue-web-terminal.js?:6296:14) at onInput._cache.<computed>._cache.<computed> (webpack://vue-unipaper/./node_modules/vue-web-terminal/lib/vue-web-terminal.js?:3617:75) at callWithErrorHandling (webpack://vue-unipaper/./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js?:296:18) at callWithAsyncErrorHandling (webpack://vue-unipaper/./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js?:304:17) at HTMLInputElement.invoker (webpack://vue-unipaper/./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js?:754:82)

tzfun commented 9 months ago

已发布2.2.03.2.2版本修复