@@ -1046,6 +1046,7 @@ extension Home {
}
+ //TODO: Consolidate all mmol parsing methods (in TagCloudView, NightscoutManager and HomeRootView) to one central func
private func parseReasonConclusion(_ reasonConclusion: String, isMmolL _: Bool) -> String {
let patterns = [
"minGuardBG\\s*-?\\d+\\.?\\d*<-?\\d+\\.?\\d*",
@@ -1131,6 +1131,8 @@ extension BaseNightscoutManager {
- Glucose tags handled: `ISF:`, `Target:`, `minPredBG`, `minGuardBG`, `IOBpredBG`, `COBpredBG`, `UAMpredBG`, `Dev:`, `maxDelta`, `BGI`.
*/
+
func parseReasonGlucoseValuesToMmolL(_ reason: String) -> String {
"ISF:\\s*-?\\d+\\.?\\d*→-?\\d+\\.?\\d*",
@@ -103,6 +103,8 @@ struct TagCloudView: View {
private func formatGlucoseTags(_ tag: String, isMmolL: Bool) -> String {