Skip to content

Commit ae1e2e0

Browse files
committed
Plus d'extensions valides pour les fichiers de bdd
1 parent a04a1ee commit ae1e2e0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/notes-de-version.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@
110110
### 2.1.1
111111

112112
- FIX - Missing CDN dependency
113+
114+
### 2.1.2
115+
116+
- FIX - More valid extensions for database files

mkdocs_sqlite_console/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .plugin import SQLiteConsole
22

3-
VERSION = "2.1.1"
3+
VERSION = "2.1.2"

mkdocs_sqlite_console/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def get_relative_file(
164164
if not os.path.isfile(path):
165165
continue
166166

167-
if path.endswith(".db"):
167+
if path.endswith((".db", ".sdb", ".sqlite", ".db3", ".s3db", ".sqlite3", ".sl3", ".db2", ".s2db", ".sqlite2", ".sl2")):
168168
# .db are not readable with utf-8, but no need of their content so no problem.
169169
content = "_dummy"
170170
else:

0 commit comments

Comments
 (0)