Forráskód Böngészése

changed grouping from - to .

Moritz Schmidt 6 éve
szülő
commit
08a641f21c
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -11,7 +11,7 @@ elif len(sys.argv) == 2:
     for f in files:
         print f
         match = re.match(r'([a-zA-Z.]*).([S|s][0-9]*[E|e][0-9]*).([a-zA-Z0-9äöüÄÖÜß\-\.\,\w]*)', f)
-        newName = match.group(1) + "-" + match.group(2) + "-" + match.group(3)
+        newName = match.group(1) + "." + match.group(2) + "." + match.group(3)
         print newName
         os.rename(f, newName)
         print "\n"