Skip to content
Snippets Groups Projects
Commit b2d6db6e authored by Marc Troelitzsch's avatar Marc Troelitzsch Committed by Marc Trölitzsch
Browse files

Fix parsing of "PHP-style" versions in version_tuple_from_generator

In the examples in the MediaWiki documentation, versions are compared
using the `version_compare` function from the PHP standard library:

https://www.mediawiki.org/wiki/Manual:$wgVersion#Example_code

Before comparison, this version canonicalizes version strings according
to the following rules:

- Replace _, - and + with a dot .
- Insert dots . before and after any non number

This commit updates `Site.version_tuple_from_generator` to parse
versions according to those rules.
parent 0c115f9b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment