Compare commits

..

No commits in common. "e128d01b81bf38fa818130028fdd62dc76ad7c52" and "c3bc0bdb9e4bc0db9fa39078c02ca652f41bff62" have entirely different histories.

View File

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