mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
variant: fix variant detection for official documentation #188
This commit is contained in:
parent
3ff5aa9c82
commit
fb2df556bc
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@
|
|||
if( !s || !s.match ){
|
||||
return '';
|
||||
}
|
||||
var matches = s.match(/^.*\/?theme-(.*?)\.css.*$/);
|
||||
var matches = s.match(/^.*\/?theme-([^\/]*?)\.css.*$/);
|
||||
var theme = matches && matches.length == 2 ? matches[ 1 ] : '';
|
||||
return theme;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue