tag-checker 0.0.126 → 0.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tag-checker",
3
- "version": "0.0.126",
3
+ "version": "0.0.128",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,6 +48,11 @@ export function reportLongLinePage(charsPerLineCollect, pageLineInfo) {
48
48
 
49
49
  function getMaxOutValue(numbers) {
50
50
  let n = numbers.length;
51
+
52
+ if (n === 0) {
53
+ return 99999999;
54
+ }
55
+
51
56
  let sum = numbers.reduce((a, b) => {
52
57
  return a + b;
53
58
  });
@@ -55,7 +55,7 @@ function check2Pb4Order(store, lastBio, pbBio, looseMode) {
55
55
  if (sameNumber(lastPbN, pbN) && correctPbL(lastPbL + pbL) || numberAdd1(lastPbN, pbN) && 'a' === pbL) {
56
56
  return;
57
57
  }
58
- else if (looseMode && numberJump(lastPbN, pbN) && 'a' === pbL) {
58
+ else if (looseMode && numberJump(lastPbN, pbN)) {
59
59
  warn('Pb may be missing!', lastFn, lastTag, fn, tag);
60
60
  }
61
61
  else {