Skip to content
Snippets Groups Projects
Commit 1db728d8 authored by rswindell's avatar rswindell
Browse files

Fix the regexp in valid_shared_file() (used by "verify" and other commands

to verify an avatar .bin file) - '.' matches any char except line-endings
and 0x0D and 0x0A are valid attribute values in a bin file. Oops.
parent ed7f4902
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ function valid_shared_file(filename)
return false;
var data = file.read(sauce.filesize);
file.close();
var list = data.match(new RegExp('(.{1,' + lib.size + '})', 'g'));
var list = data.match(new RegExp('([\x00-\xff]{1,' + lib.size + '})', 'g'));
printf("%u avatars\r\n", list.length);
// print(JSON.stringify(list, null, 4));
for(var i in list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment