https://bugzilla.wikimedia.org/show_bug.cgi?id=71566
--- Comment #12 from Sam Reed (reedy) <[email protected]> --- You can simplify the regex using something along the lines of \d+\.\d+\.\d+ There might be some letter suffixes, but I suspect these don't make much of a difference but the logic seems about right > var_dump( version_compare( '10.0.11', '5.5.3', '>=' ) ); bool(true) > var_dump( version_compare( '5.5.3', '5.5.3', '>=' ) ); bool(true) > var_dump( version_compare( '5.5.2', '5.5.3', '>=' ) ); bool(false) -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
