1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 16:35:08 -05:00

* remove illegal characters from label

This commit is contained in:
Reinhard Pointner 2011-10-15 12:40:35 +00:00
parent 5b917ef1d0
commit 22dd7abc8d

View File

@ -63,7 +63,16 @@ public class Analytics {
if (!tracker.isEnabled())
return;
tracker.trackEvent(category, action, label, value);
tracker.trackEvent(normalize(category), normalize(action), normalize(label), value);
}
private static String normalize(String label) {
if (label == null)
return null;
// trim braces
return label.replaceAll("[*()]", "").trim();
}