Allow multiple import of regex

This commit is contained in:
Cohee
2024-05-17 01:06:00 +03:00
parent 71a3e2c91b
commit 59d00cca74
2 changed files with 4 additions and 2 deletions

View File

@ -325,7 +325,9 @@ jQuery(async () => {
});
$('#import_regex_file').on('change', async function () {
const inputElement = this instanceof HTMLInputElement && this;
await onRegexImportFileChange(inputElement.files[0]);
for (const file of inputElement.files) {
await onRegexImportFileChange(file);
}
inputElement.value = '';
});
$('#import_regex').on('click', function () {