mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Clean-up code
This commit is contained in:
@@ -335,8 +335,6 @@ function updateInfoBlock(editorHtml) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const flagInfo = [];
|
const flagInfo = [];
|
||||||
// Check flags
|
|
||||||
|
|
||||||
flagInfo.push(regex.flags.includes('g') ? t`Applies to all matches` : t`Applies to the first match`);
|
flagInfo.push(regex.flags.includes('g') ? t`Applies to all matches` : t`Applies to the first match`);
|
||||||
flagInfo.push(regex.flags.includes('i') ? t`Case insensitive` : t`Case sensitive`);
|
flagInfo.push(regex.flags.includes('i') ? t`Case insensitive` : t`Case sensitive`);
|
||||||
|
|
||||||
@@ -346,7 +344,6 @@ function updateInfoBlock(editorHtml) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
infoBlock.addClass('error');
|
infoBlock.addClass('error');
|
||||||
infoBlockTextSpan.text(error.message);
|
infoBlockTextSpan.text(error.message);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user