Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Hobson 4483cdbe3e
Merge pull request #381 from engineer-man/binary
require arleast 1 utf-8 encoded file
2021-10-16 00:40:41 +13:00
Thomas Hobson 7e5844bcb1
require arleast 1 utf-8 encoded file 2021-10-15 16:14:06 +13:00
1 changed files with 9 additions and 0 deletions

View File

@ -87,6 +87,15 @@ function get_job(body) {
}
}
if (
files.filter(file => !file.encoding || file.encoding === 'utf8')
.length === 0
) {
return reject({
message: 'files must include at least one utf8 encoded file',
});
}
const rt = runtime.get_latest_runtime_matching_language_version(
language,
version