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
269 stars 33 forks source link

输入?时产生报错 #65

Closed Xuwznln closed 10 months ago

Xuwznln commented 1 year 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 10 months ago

已发布2.2.03.2.2版本修复