Skip to content

Commit

Permalink
Fix typo and update metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
EtorixDev committed Jan 19, 2024
1 parent 71fadcf commit a3da695
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Etorix
Copyright (c) 2024 Etorix

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def readme():

setup(
name = "timelength",
version = "1.1.7",
url = "https://github.com/Etorix0005/timelength",
version = "1.1.8",
url = "https://github.com/EtorixDev/timelength",
license = "MIT License",
author = "Etorix",
author_email = "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion timelength/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SEPERATORS = [
SEPARATORS = [
",",
" ",
"\t"
Expand Down
4 changes: 2 additions & 2 deletions timelength/timelength.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __parse(self, passed_value, strict):

# Catch special characters such as !#$+
alphanum = check_alphanumeric(char)
if char in SEPERATORS:
if char in SEPARATORS:
if buffer and not buffer.strip() in CONNECTORS:
potential_values.append(buffer)
buffer = ""
Expand All @@ -121,7 +121,7 @@ def __parse(self, passed_value, strict):
skip_iteration = 0
to_check = passed_value[index]
# Check if subsequent characters are also non-alphanumeric
while index < len(passed_value) and to_check is not None and to_check not in SEPERATORS and not isfloat(to_check) and not check_alphanumeric(to_check):
while index < len(passed_value) and to_check is not None and to_check not in SEPARATORS and not isfloat(to_check) and not check_alphanumeric(to_check):
char += passed_value[index]
skip_iteration += 1
index += 1
Expand Down

0 comments on commit a3da695

Please sign in to comment.