NoFoolLikeOne / EDMC-Screenshot

A plugin for EDMC that detects screenshot events are converts them to PNG format
GNU General Public License v3.0
34 stars 4 forks source link

strip filenames of certain characters, but keep valid ones found #50

Closed chennin closed 3 years ago

chennin commented 3 years ago

Fixes #39 by removing (not replacing) all non-alphanumeric characters that are also not '()._,-+#][ (includes space)

Notably, despite systems with * and / in their name, this removes them.

Example actual ED system names with 'weird' characters:

1 G. Aquarii
NGC 2371/2 Sector YJ-A d0 <- EDMC-Screenshot would fail on this and 8 other systems with / in their name
GEN# +2.12450534
WDS J05353-0522Ja,Jb
Yin T'ien
Cl* NGC 1981 AR 131 <- Would fail on 10 systems with * in their name
Pipe (stem) Sector ZZ-Y c9

Not tested as I can't test on Linux (plugin doesn't load at all). Please review! (when I am able to test on Windows, I will, but that might not be for a bit)

NoFoolLikeOne commented 3 years ago

Thanks. I will try and get this tested tonight