Skip to content

Commit

Permalink
GH-90: Avoid warning on python 3.11
Browse files Browse the repository at this point in the history
- Upgrade ubuntu machine.
  • Loading branch information
Dídac Coll authored and didix21 committed Apr 21, 2023
1 parent 0801ae2 commit 0151e75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ on:

jobs:
build:

runs-on: ubuntu-18.04

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.6'
python-version: '3.10'
- name: Install dependencies
run: |
pip install coverage
Expand Down
2 changes: 1 addition & 1 deletion mdutils/tools/TableOfContents.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _loop_through(self, elements, tab: str = "", depth: int = 1) -> str:
+ "* ["
+ item
+ "](#"
+ re.sub("[^a-z0-9_\-]", "", item.lower().replace(" ", "-"))
+ re.sub("[^a-z0-9_-]", "", item.lower().replace(" ", "-"))
+ ")"
)

Expand Down

0 comments on commit 0151e75

Please sign in to comment.