瀏覽代碼

Modified regex expression to better fit

Michael Honkoop 4 月之前
父節點
當前提交
0a66a7096f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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("- ")