mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
lint: Require semicolons
This commit is contained in:
@@ -4,7 +4,7 @@ export {
|
||||
regex_placement,
|
||||
getRegexedString,
|
||||
runRegexScript
|
||||
}
|
||||
};
|
||||
|
||||
const regex_placement = {
|
||||
// MD Display is deprecated. Do not use.
|
||||
@@ -12,12 +12,12 @@ const regex_placement = {
|
||||
USER_INPUT: 1,
|
||||
AI_OUTPUT: 2,
|
||||
SLASH_COMMAND: 3
|
||||
}
|
||||
};
|
||||
|
||||
const regex_replace_strategy = {
|
||||
REPLACE: 0,
|
||||
OVERLAY: 1
|
||||
}
|
||||
};
|
||||
|
||||
// Originally from: https://github.com/IonicaBizau/regex-parser.js/blob/master/lib/index.js
|
||||
function regexFromString(input) {
|
||||
|
@@ -119,7 +119,7 @@ async function onRegexEditorOpenClick(existingId) {
|
||||
if (existingScript.scriptName) {
|
||||
editorHtml.find('.regex_script_name').val(existingScript.scriptName);
|
||||
} else {
|
||||
toastr.error('This script doesn\'t have a name! Please delete it.')
|
||||
toastr.error('This script doesn\'t have a name! Please delete it.');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ async function onRegexEditorOpenClick(existingId) {
|
||||
editorHtml
|
||||
.find('input[name="replace_position"]')
|
||||
.filter(':checked')
|
||||
.map(function () { return parseInt($(this).val()) })
|
||||
.map(function () { return parseInt($(this).val()); })
|
||||
.get()
|
||||
.filter((e) => !isNaN(e)) || [],
|
||||
disabled:
|
||||
@@ -222,8 +222,8 @@ function migrateSettings() {
|
||||
Object.values(regex_placement).filter((e) => e !== regex_placement.MD_DISPLAY) :
|
||||
script.placement = script.placement.filter((e) => e !== regex_placement.MD_DISPLAY);
|
||||
|
||||
script.markdownOnly = true
|
||||
script.promptOnly = true
|
||||
script.markdownOnly = true;
|
||||
script.promptOnly = true;
|
||||
|
||||
performSave = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user