From 9036d85e19ab8a6a26d9c07d63ca100158148c40 Mon Sep 17 00:00:00 2001 From: Somrat <58769763+tfsomrat@users.noreply.github.com> Date: Sun, 28 Apr 2024 09:15:38 +0600 Subject: [PATCH] update regex to match variable google-font --- exampleSite/tailwind.config.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exampleSite/tailwind.config.js b/exampleSite/tailwind.config.js index bbc2a5e..c8754a7 100755 --- a/exampleSite/tailwind.config.js +++ b/exampleSite/tailwind.config.js @@ -16,13 +16,13 @@ let fontPrimary, fontPrimaryType, fontSecondary, fontSecondaryType; if (theme.fonts.font_family.primary) { fontPrimary = theme.fonts.font_family.primary .replace(/\+/g, " ") - .replace(/:[ital,]*[ital@]*[wght@]*[0-9,;]+/gi, ""); + .replace(/:[ital,]*[ital@]*[wght@]*[0-9,;.]+/gi, ""); fontPrimaryType = theme.fonts.font_family.primary_type; } if (theme.fonts.font_family.secondary) { fontSecondary = theme.fonts.font_family.secondary .replace(/\+/g, " ") - .replace(/:[ital,]*[ital@]*[wght@]*[0-9,;]+/gi, ""); + .replace(/:[ital,]*[ital@]*[wght@]*[0-9,;.]+/gi, ""); fontSecondaryType = theme.fonts.font_family.secondary_type; } diff --git a/package.json b/package.json index 57ccce7..c92be41 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.13.7", + "version": "1.13.8", "license": "MIT", "author": "zeon.studio", "scripts": {