Skip to content

Commit

Permalink
Merge branch 'release/v1.0.0b2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnitsch committed Jan 8, 2021
2 parents 485d5b7 + 981f88e commit 68bc426
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

Version 1.0.0b2 (beta version)
------------------------------

*Release date: 2021/01/08*

* fixed: parentheses are now allowed in names specified by using the ``--name`` switch

Version 1.0.0b1 (beta version)
------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '1.0'
# The full version, including alpha/beta/rc tags.
release = '1.0.0.dev4'
release = '1.0.0b2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 3 additions & 3 deletions src/py3createtorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

# Do not touch anything below this line unless you know what you're doing!

__version__ = '1.0.0b1'
__version__ = '1.0.0b2'

# Note:
# Kilobyte = kB = 1000 Bytes
Expand Down Expand Up @@ -906,10 +906,10 @@ def main() -> None:
if args.name:
args.name = args.name.strip()

regexp = re.compile(r"^[A-Z0-9_\-., ]+$", re.I)
regexp = re.compile(r"^[A-Z0-9_\-., ()]+$", re.I)

if not regexp.match(args.name):
parser.error("Invalid name: '%s'. Allowed chars: A_Z, a-z, 0-9, any of {.,_-} plus spaces." % args.name)
parser.error("Invalid name: '%s'. Allowed chars: A_Z, a-z, 0-9, any of {.,_-()} plus spaces." % args.name)

metainfo['info']['name'] = args.name

Expand Down

0 comments on commit 68bc426

Please sign in to comment.