Browse Source

Fix regex for module preset filename prefix.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
e925855ac4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/app/ModuleWidget.cpp

+ 1
- 1
src/app/ModuleWidget.cpp View File

@@ -859,7 +859,7 @@ static void appendPresetItems(ui::Menu* menu, WeakPtr<ModuleWidget> 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)) {


Loading…
Cancel
Save