forked from AFPy/potodo
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:
parent
a232164004
commit
7efa7a0fbc
|
@ -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:
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
__author__ = """Jules Lasne"""
|
||||
__email__ = "jules.lasne@gmail.com"
|
||||
__version__ = "0.21.1"
|
||||
__version__ = "0.21.2"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue