diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index 87ea7bd4..e9223269 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -859,7 +859,7 @@ static void appendPresetItems(ui::Menu* menu, WeakPtr moduleWidget for (std::string path : entries) { std::string name = system::getStem(path); // Remove "1_", "42_", "001_", etc at the beginning of preset filenames - std::regex r("^\\d*_"); + std::regex r("^\\d+_"); name = std::regex_replace(name, r, ""); if (system::isDirectory(path)) {