       if password.charAt(j-1) == password.charAt(j)
         j += 1
       else
-        if j - i > 2 # length-3 chains and up
+        if j - i > 1
           result.push
             pattern: 'repeat'
             i: i

        j += 1
      # otherwise push the pattern discovered so far, if any...
      else
        if j - i > 2 # only consider length-3 chains and up
          result.push
            pattern: 'spatial'
            i: i

        if cur_n - prev_n == seq_direction
          j += 1
        else
          if j - i > 1
            result.push
              pattern: 'sequence'
              i: i
