mirror of
https://github.com/vrana/adminer.git
synced 2026-07-28 19:49:21 +02:00
AdminerTablesFilter: Fix JS variable visibility
fix error: Uncaught ReferenceError: reg is not defined
This commit is contained in:
@@ -19,8 +19,9 @@ function tablesFilter() {
|
||||
return;
|
||||
}
|
||||
tablesFilterValue = value;
|
||||
let reg;
|
||||
if (value != '') {
|
||||
const reg = (value + '').replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g, '\\$1');
|
||||
reg = (value + '').replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g, '\\$1');
|
||||
reg = new RegExp('('+ reg + ')', 'gi');
|
||||
}
|
||||
if (sessionStorage) {
|
||||
|
||||
Reference in New Issue
Block a user