diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 1df2f9dadd..b64ad8dcf2 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp @@ -267,6 +267,9 @@ void IPSwitchCompiler::Parse(std::span bytes) { ++p; } } + // remove trailing + for (; p > sline.cbegin() && std::isspace(*p); --p) + ; // now we have the preprocessed string ;) std::string_view pp_str(sline_start, p); if (pp_str.size() > 0 && !parse_line(pp_str)) {