recognize gmsh "2" files
@@ -4,7 +4,9 @@ from .._exceptions import ReadError, WriteError
from .._helpers import register
from . import _gmsh22, _gmsh40, _gmsh41
-_readers = {"2.2": _gmsh22, "4.0": _gmsh40, "4.1": _gmsh41}
+# Some mesh files out there have the version specified as version "2" when it really is
+# "2.2".
+_readers = {"2": _gmsh22, "2.2": _gmsh22, "4.0": _gmsh40, "4.1": _gmsh41}
_writers = {"2.2": _gmsh22, "4.0": _gmsh40, "4.1": _gmsh41}
