Skip to content

Commit b261148

Browse files
committed
Fixed info plugin latest version check for Insiders
1 parent 2866925 commit b261148

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

material/plugins/info/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def on_config(self, config):
6767
# Check if we're running the latest version
6868
_, version = res.headers.get("location").rsplit("/", 1)
6969
package = get_distribution("mkdocs-material")
70-
if package.version != version:
70+
if not package.version.startswith(version):
7171
log.error("Please upgrade to the latest version.")
7272
self._help_on_versions_and_exit(package.version, version)
7373

src/plugins/info/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def on_config(self, config):
6767
# Check if we're running the latest version
6868
_, version = res.headers.get("location").rsplit("/", 1)
6969
package = get_distribution("mkdocs-material")
70-
if package.version != version:
70+
if not package.version.startswith(version):
7171
log.error("Please upgrade to the latest version.")
7272
self._help_on_versions_and_exit(package.version, version)
7373

0 commit comments

Comments
 (0)