Skip to content

Commit 366fc20

Browse files
committed
Fix for v0.2.0
1 parent 10d1c84 commit 366fc20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="token_tools",
10-
version="0.1.2",
10+
version="0.2.0",
1111
description="Token Tools provides, well, tools for Token's!",
1212
author="Moosems",
1313
author_email="[email protected]",

token_tools/token_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def normal_text_range(
1010
split_text: list[str] = full_text.splitlines()
1111
split_len: int = len(split_text)
1212

13-
if text_range[1] > split_len or text_range[1] == -1:
13+
if text_range[1] >= split_len or text_range[1] == -1:
1414
# This indicates that the text range should span the length of the entire code or is too long
1515
split_len = (
1616
1 if split_len == 0 else split_len

0 commit comments

Comments
 (0)