This commit is contained in:
McShelby 2023-12-03 14:23:32 +00:00
commit d9659da92d
268 changed files with 7181 additions and 6827 deletions

View file

@ -89,7 +89,8 @@ var variants = {
},
generateVariantPath: function( variant, old_path ){
var new_path = old_path.replace( /^(.*\/theme-).*?(\.css.*)$/, '$1' + variant + '$2' );
var mod = window.relearn.themeVariantModifier.replace( '.', '\\.' );
var new_path = old_path.replace( new RegExp(`^(.*\/theme-).*?(${mod}\.css.*)$`), '$1' + variant + '$2' );
return new_path;
},