Skip to content

Commit 0151e75

Browse files
Dídac Colldidix21
authored andcommitted
GH-90: Avoid warning on python 3.11
- Upgrade ubuntu machine.
1 parent 0801ae2 commit 0151e75

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ on:
1111

1212
jobs:
1313
build:
14-
15-
runs-on: ubuntu-18.04
16-
14+
runs-on: ubuntu-latest
1715
steps:
18-
- uses: actions/checkout@v2
19-
- name: Set up Python 3.6
16+
- uses: actions/checkout@v3
17+
- name: Set up Python 3.10
2018
uses: actions/setup-python@v4
2119
with:
22-
python-version: '3.6'
20+
python-version: '3.10'
2321
- name: Install dependencies
2422
run: |
2523
pip install coverage

mdutils/tools/TableOfContents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _loop_through(self, elements, tab: str = "", depth: int = 1) -> str:
3737
+ "* ["
3838
+ item
3939
+ "](#"
40-
+ re.sub("[^a-z0-9_\-]", "", item.lower().replace(" ", "-"))
40+
+ re.sub("[^a-z0-9_-]", "", item.lower().replace(" ", "-"))
4141
+ ")"
4242
)
4343

0 commit comments

Comments
 (0)