firemind / ProjectFiremind-Issues

Issue Tracker for Project Firemind (firemind.ch)
1 stars 0 forks source link

card/groovy script file name should not contain hyphen '-' #19

Closed melvinzhang closed 10 years ago

melvinzhang commented 10 years ago

The filename of a card script is obtained by replacing all non-alphanumeric characters with _. This includes the hyphen.

Eg. in https://code.google.com/r/projectfiremind-magarena-20140421/source/detail?r=183fb087149e6251cd609db51d085eaee2f14dcc the correct filename should be Ghitu_Fire_Eater.txt and Ghitu_Fire_Eater.groovy

firemind commented 10 years ago

I just changed the regexp for escaping to the one Magarena uses .gsub(/[^A-Za-z0-9]/, "_")