]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
CaseReader: minor bug fix in reg exp ...
authorabn <adrien.bruneton@cea.fr>
Thu, 2 May 2019 09:20:00 +0000 (11:20 +0200)
committerabn <adrien.bruneton@cea.fr>
Thu, 2 May 2019 09:20:00 +0000 (11:20 +0200)
src/MEDLoader/Swig/CaseReader.py

index 56296451c28352e4f65e06d52ad96edede2757fd..403c3fb6a8a69b40c314961be91488c6f89b7326 100644 (file)
@@ -373,7 +373,7 @@ class CaseReader(CaseIO):
                 end=lines.index("TIME\n")
                 pass
             for i in range(ind + 1,end):
-                m=re.match("^([\w]+)[\s]+\per[\s]+([\w]+)[\s]*\:[\s]*[0-9]*[\s]*([\w]+)[\s]+([\S]+)$",lines[i])
+                m=re.match("^([\w]+)[\s]+per[\s]+([\w]+)[\s]*\:[\s]*[0-9]*[\s]*([\w]+)[\s]+([\S]+)$",lines[i])
                 if m:
                     if m.groups()[0]=="constant":
                         continue