Replaces non ascii characters to dashes so that it's consistent with … (#260)

refs #7313

- theme name normalisation
- detect duplicates to show a popup to override a theme
This commit is contained in:
Ryan McCarvill 2016-09-15 05:23:04 +12:00 committed by Katharina Irrgang
parent bdac5a4b3f
commit 05d88916ab
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ export default ModalComponent.extend({
actions: {
validateTheme(file) {
let themeName = file.name.replace(/\.zip$/, '');
let themeName = file.name.replace(/\.zip$/, '').replace(/[^\w@.]/gi, '-');
let availableThemeNames = this.get('availableThemeNames');
this.set('file', file);