mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
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:
parent
1933f67620
commit
a93ea7ee92
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue