Skip to content
Snippets Groups Projects
Commit 56fa6984 authored by Lange, Dr. Herbert's avatar Lange, Dr. Herbert
Browse files

handle * in file extensions

parent e591081f
No related branches found
No related tags found
No related merge requests found
Pipeline #12662 failed
......@@ -16,9 +16,10 @@ var count;
function do_the_sending(corpus_files,file_exts,resolve) {
for (var i = 0 ; i <corpus_files.length; i++) {
file_exts.forEach(function(e) {
if (corpus_files[i].name.endsWith(e)) {
if (corpus_files[i].name.endsWith(e.replace("\*.","")) || e == "*") {
var reader = new FileReader();
reader.addEventListener("load", ((name) => { return () => {
console.log("send file " + name)
var content = reader.result;
--count;
$.ajax({
......@@ -56,6 +57,7 @@ function send_files() {
var functions = []
$("#corpus_checker_form input:checked").each((index,element) => functions.push(element.value));
var url = "check_corpus?input=tmp&output=tmp&functions=" + functions.join(",") + "&token=tmp&callback="
console.log("call url " + url)
$.ajax({
url: url,
type: "GET",
......
......@@ -18,7 +18,8 @@
</div>
<!-- Filtering by file extension -->
<div class="row">
<label of="file-exts">File filter (by file extensions):</label>
<label of="file-exts">File filter (by file extensions, comma-separated, either in the form exb or *.exb and *
matching everything):</label>
<input type="text" id="file-exts" value="*">
</div>
<!-- Config file selector -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment