JosephEoff / MuseScore_UltraStar_Exporter

MuseScore plugin to create UltraStar files
GNU General Public License v2.0
0 stars 3 forks source link

closes #2 Export Directory Path #6

Closed jeetee closed 8 years ago

jeetee commented 8 years ago
JosephEoff commented 8 years ago

Incorrectly strips leading / from directory name under Linux. Please check the regex - I'm not good at them, so I'm not real clear on how it supposed to work. When selecting the directory on a Linux system, I receive file:///home/joseph/Songs/jeeteeTest This needs to be modified to /home/joseph/Songs/jeeteeTest

jeetee commented 8 years ago

This should fix it. I misread the original issue report as linux paths only having a double slash instead of a triple one.

Replace now happens in two steps:

  1. Remove file:// as it is common for all platforms
  2. Only remove next slash if it is directly followed by a single character, semicolon and another slash. This should filter out the Drive letters on windows.

The regex transforms /C:/Users/jt/Music into C:/Users/jt/Music but leaves /home/whatever as is.

JosephEoff commented 8 years ago

OK. I'll check it this evening.

JosephEoff commented 8 years ago

Looks good on Windows. I'll check on Linux later when I'm home.

JosephEoff commented 8 years ago

Works under Linux.