regex: allows for a mix of words and periods between the FOLDER and the .po. I assume we use semver ? (#124)

This commit is contained in:
edith 2022-04-12 15:28:01 -04:00 committed by GitHub
parent a232164004
commit 7efa7a0fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ repos:
rev: stable
hooks:
- id: black
language_version: python3.7
language_version: python3
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.9.0
hooks:

View File

@ -2,4 +2,4 @@
__author__ = """Jules Lasne"""
__email__ = "jules.lasne@gmail.com"
__version__ = "0.21.1"
__version__ = "0.21.2"

View File

@ -77,7 +77,7 @@ def _get_reservation_list(repo_path: Path) -> Dict[str, Tuple[Any, Any]]:
for issue in issues:
# Maybe find a better way for not using python 3.8 ?
yes = re.search(r"\w*/\w*\.po", issue["title"])
yes = re.search(r"\w*/(\w|\.)*\.po", issue["title"])
if yes:
creation_date = datetime.strptime(
issue["created_at"].split("T")[0], "%Y-%m-%d"