diff --git a/web/packages/authentik/.storybook/css-import-maps.ts b/web/packages/authentik/.storybook/css-import-maps.ts index 69bda7100..3ac1aebb0 100644 --- a/web/packages/authentik/.storybook/css-import-maps.ts +++ b/web/packages/authentik/.storybook/css-import-maps.ts @@ -1,4 +1,3 @@ - // THIS IS A GENERATED FILE. DO NOT EDIT BY HAND. // // This file is generated by the build-storybook-import-maps script in the UI's base directory. @@ -75,7 +74,7 @@ type ImportMapType = Record; export const cssImportMaps = cssImportMapsBase.reduce( (acc: ImportMapType, importLine: string) => ({ ...acc, - [importLine]: importLine.replace(/.css/, ".css?inline"), + [importLine]: importLine.replace(/\.css/, ".css?inline"), }), - {} + {}, ); diff --git a/web/packages/authentik/scripts/build-storybook-import-maps.ts b/web/packages/authentik/scripts/build-storybook-import-maps.ts index 6ecf05a36..a50e48c80 100644 --- a/web/packages/authentik/scripts/build-storybook-import-maps.ts +++ b/web/packages/authentik/scripts/build-storybook-import-maps.ts @@ -82,7 +82,7 @@ type ImportMapType = Record; export const cssImportMaps = cssImportMapsBase.reduce( (acc: ImportMapType, importLine: string) => ({ ...acc, - [importLine]: importLine.replace(/\.css/, ".css?inline"), + [importLine]: importLine.replace(/\\.css/, ".css?inline"), }), {} );