If label is empty, reset the correction state (to allow template deletion)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3a46ceb7ec
commit
9a19f3a945
@ -40,9 +40,9 @@
|
|||||||
const my_correction = { };
|
const my_correction = { };
|
||||||
|
|
||||||
for (const tpl of templates) {
|
for (const tpl of templates) {
|
||||||
if (!tpl.regexp) continue;
|
if (!tpl.regexp && tpl.label) continue;
|
||||||
|
|
||||||
if (r.value.match(tpl.regexp)) {
|
if (tpl.regexp && r.value.match(tpl.regexp)) {
|
||||||
my_correction[tpl.id] = true;
|
my_correction[tpl.id] = true;
|
||||||
} else {
|
} else {
|
||||||
my_correction[tpl.id] = false;
|
my_correction[tpl.id] = false;
|
||||||
|
Reference in New Issue
Block a user