bvd757 commited on
Commit
9e33f28
·
1 Parent(s): b2cb04b
Files changed (1) hide show
  1. search_errors_logic.py +1 -1
search_errors_logic.py CHANGED
@@ -135,7 +135,7 @@ def get_piece_of_text_bounds(s, start, end):
135
  if start != 0: start -= 1
136
  while start != 0 and s[start] not in [' ', "\n", '\t']:
137
  start -= 1
138
- start += 1
139
 
140
  if end < len(s) - 1: end += 1
141
  while end < len(s) - 1 and s[end] not in [' ', "\n", '\t']:
 
135
  if start != 0: start -= 1
136
  while start != 0 and s[start] not in [' ', "\n", '\t']:
137
  start -= 1
138
+ if s[start] in [' ', "\n", '\t']: start += 1
139
 
140
  if end < len(s) - 1: end += 1
141
  while end < len(s) - 1 and s[end] not in [' ', "\n", '\t']: