update regex to match variable google-font
This commit is contained in:
parent
750051c3a3
commit
9036d85e19
@ -16,13 +16,13 @@ let fontPrimary, fontPrimaryType, fontSecondary, fontSecondaryType;
|
|||||||
if (theme.fonts.font_family.primary) {
|
if (theme.fonts.font_family.primary) {
|
||||||
fontPrimary = theme.fonts.font_family.primary
|
fontPrimary = theme.fonts.font_family.primary
|
||||||
.replace(/\+/g, " ")
|
.replace(/\+/g, " ")
|
||||||
.replace(/:[ital,]*[ital@]*[wght@]*[0-9,;]+/gi, "");
|
.replace(/:[ital,]*[ital@]*[wght@]*[0-9,;.]+/gi, "");
|
||||||
fontPrimaryType = theme.fonts.font_family.primary_type;
|
fontPrimaryType = theme.fonts.font_family.primary_type;
|
||||||
}
|
}
|
||||||
if (theme.fonts.font_family.secondary) {
|
if (theme.fonts.font_family.secondary) {
|
||||||
fontSecondary = theme.fonts.font_family.secondary
|
fontSecondary = theme.fonts.font_family.secondary
|
||||||
.replace(/\+/g, " ")
|
.replace(/\+/g, " ")
|
||||||
.replace(/:[ital,]*[ital@]*[wght@]*[0-9,;]+/gi, "");
|
.replace(/:[ital,]*[ital@]*[wght@]*[0-9,;.]+/gi, "");
|
||||||
fontSecondaryType = theme.fonts.font_family.secondary_type;
|
fontSecondaryType = theme.fonts.font_family.secondary_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "hugoplate",
|
"name": "hugoplate",
|
||||||
"description": "hugo tailwindcss boilerplate",
|
"description": "hugo tailwindcss boilerplate",
|
||||||
"version": "1.13.7",
|
"version": "1.13.8",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "zeon.studio",
|
"author": "zeon.studio",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user