Explorar o código

Modified regex expression to better fit

Michael Honkoop hai 4 meses
pai
achega
0a66a7096f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      edir-monitor.py

+ 1 - 1
edir-monitor.py

@@ -33,7 +33,7 @@ def print_list(the_list):
                     # join the values into a string
                     valueresult = ' '.join(str(e) for e in v)
                     # sanitize the timestamps if they are present
-                    valueresult = re.sub('(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})([Z])$', r'\3-\2-\1 \4:\5:\6', valueresult)
+                    valueresult = re.sub('(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})([Z])', r'\3-\2-\1 \4:\5:\6', valueresult)
                     # usecases of formatting data differently
                     if "BackGroundProc" in keytxtresult:
                         resultArray.append("- ")