From 0e1ab29b5d79a056edb6d322c9f778d1272aa797 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Wed, 16 Oct 2024 22:14:12 +0200 Subject: [PATCH] ingore commas in pasted frequencies --- core/src/utils/hrfreq.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/utils/hrfreq.cpp b/core/src/utils/hrfreq.cpp index 21b593f3f..c09131e1a 100644 --- a/core/src/utils/hrfreq.cpp +++ b/core/src/utils/hrfreq.cpp @@ -70,6 +70,9 @@ namespace hrfreq { // If isn't numeric, skip it if (!isNumeric(c)) { continue; } + // If it's a comma, skip it for now. This enforces a dot as a decimal point + if (c == ',') { continue; } + // Add the character to the numeric string numeric += c; }