Explorar el Código

Fix line numbers.

n8225 hace 5 años
padre
commit
7dd2189850
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tests/test.js

+ 1 - 1
tests/test.js

@@ -157,7 +157,7 @@ function entryErrorCheck() {
     if (entryFilter(lines[i]) === true) { // filter out lines that don't start with * [)
       e = {};
       e.raw = lines[i];
-      e.line = i
+      e.line = i + 1
       entries.push(e);
     } else if (licenseFilter(lines[i]) === true) {
       licenses.add(parseLicense(lines[i]))