Skip to content

Commit

Permalink
fixed œṡ
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Xcoder authored and DennisMitchell committed Aug 8, 2018
1 parent 361f2ad commit 9b4fb84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jelly/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,8 @@ def split_key(control, data):

def split_once(array, needle):
array = iterable(array, make_digits = True)
index = index_of(array, needle) or len(array)
return [array[0 : index - 1], array[index :]]
index = index_of(array, needle)
return [array[0 : index - 1], array[index :]] if index else [array]

def split_prefix(array):
array = iterable(array)
Expand Down

0 comments on commit 9b4fb84

Please sign in to comment.