Fix lint errors

feature-extract-files
Chris van Marle 2018-10-11 15:50:58 +02:00
parent 0cbb17f7ce
commit 3b3c27072f
1 changed files with 12 additions and 12 deletions

View File

@ -146,19 +146,19 @@ class Sort extends Operation {
const a_ = a.split(/([^\da-f]+)/i), const a_ = a.split(/([^\da-f]+)/i),
b_ = b.split(/([^\da-f]+)/i); b_ = b.split(/([^\da-f]+)/i);
for (let i = 0; i < a_.length; ++i) { for (let i = 0; i < a_.length; ++i) {
let t = parseInt(a_[i], 16); const t = parseInt(a_[i], 16);
if (!isNaN(t)) { if (!isNaN(t)) {
a_[i] = t; a_[i] = t;
} }
} }
for (let i = 0; i < b_.length; ++i) { for (let i = 0; i < b_.length; ++i) {
let t = parseInt(b_[i], 16); const t = parseInt(b_[i], 16);
if (!isNaN(t)) { if (!isNaN(t)) {
b_[i] = t; b_[i] = t;
} }
} }
for (let i = 0; i < a_.length && i < b.length; ++i) { for (let i = 0; i < a_.length && i < b.length; ++i) {
if (isNaN(a_[i]) && !isNaN(b_[i])) return 1; // Numbers after non-numbers if (isNaN(a_[i]) && !isNaN(b_[i])) return 1; // Numbers after non-numbers