Kaynağa Gözat

Fixed offset checker array initialisation

n1474335 8 yıl önce
ebeveyn
işleme
508a371175
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/core/operations/StrUtils.js

+ 1 - 1
src/core/operations/StrUtils.js

@@ -385,7 +385,7 @@ const StrUtils = {
     runOffsetChecker: function(input, args) {
     runOffsetChecker: function(input, args) {
         let sampleDelim = args[0],
         let sampleDelim = args[0],
             samples = input.split(sampleDelim),
             samples = input.split(sampleDelim),
-            outputs = [],
+            outputs = new Array(samples.length),
             i = 0,
             i = 0,
             s = 0,
             s = 0,
             match = false,
             match = false,