Compare commits

...

4 Commits

Author SHA1 Message Date
muwoo
e128d01b81 Merge pull request #184 from qidian99/master
Fix regex match error
2024-06-12 13:52:04 +08:00
木偶
c3bc0bdb9e fix: #352 2024-05-28 20:13:10 +08:00
木偶
f1f4e62177 fix: #352 2024-05-28 20:12:38 +08:00
Dian Qi
472879f9b2 Fix format regex error that will match all inputs 2023-06-04 20:30:06 +08:00
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "4.2.3",
"version": "4.2.4",
"author": "muwoo <2424880409@qq.com>",
"private": true,
"scripts": {

View File

@@ -25,7 +25,7 @@ export default () => {
height: WINDOW_HEIGHT,
minHeight: WINDOW_MIN_HEIGHT,
useContentSize: true,
resizable: true,
resizable: false,
width: WINDOW_WIDTH,
frame: false,
title: '拉比克',

View File

@@ -8,7 +8,7 @@ import useFocus from './clipboardWatch';
function formatReg(regStr) {
const flags = regStr.replace(/.*\/([gimy]*)$/, '$1');
const pattern = flags.replace(new RegExp('^/(.*?)/' + flags + '$'), '$1');
const pattern = regStr.replace(new RegExp('^/(.*?)/' + flags + '$'), '$1');
return new RegExp(pattern, flags);
}