Browse Source

Modified regex expression to better fit

Michael Honkoop 4 tháng trước cách đây
mục cha
commit
0a66a7096f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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("- ")