Explorar el Código

fix regex to include single exclamation point

Marc R Kellerman hace 1 año
padre
commit
c560f9b170
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      FreeAPS/Sources/APS/OpenAPS/JavaScriptWorker.swift

+ 1 - 1
FreeAPS/Sources/APS/OpenAPS/JavaScriptWorker.swift

@@ -65,7 +65,7 @@ final class JavaScriptWorker {
         if logContext == "prepare/autosens.js" {
             outputLogs = outputLogs.split(separator: "\n").map { logLine in
                 logLine.replacingOccurrences(
-                    of: "^[-+=x]|u\\(|\\)|\\d{1,2}h$",
+                    of: "^[-+=x!]|u\\(|\\)|\\d{1,2}h$",
                     with: "",
                     options: .regularExpression
                 )