Jelajahi Sumber

Modified regex expression to better fit

Michael Honkoop 4 bulan lalu
induk
melakukan
0a66a7096f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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("- ")