web: strengthened weak regex in import map.
This commit is contained in:
parent
bc91221c4c
commit
bdc2f68a4d
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
// THIS IS A GENERATED FILE. DO NOT EDIT BY HAND.
|
// 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.
|
// This file is generated by the build-storybook-import-maps script in the UI's base directory.
|
||||||
|
@ -76,5 +77,5 @@ export const cssImportMaps = cssImportMapsBase.reduce(
|
||||||
...acc,
|
...acc,
|
||||||
[importLine]: importLine.replace(/.css/, ".css?inline"),
|
[importLine]: importLine.replace(/.css/, ".css?inline"),
|
||||||
}),
|
}),
|
||||||
{},
|
{}
|
||||||
);
|
);
|
||||||
|
|
|
@ -82,7 +82,7 @@ type ImportMapType = Record<string, string>;
|
||||||
export const cssImportMaps = cssImportMapsBase.reduce(
|
export const cssImportMaps = cssImportMapsBase.reduce(
|
||||||
(acc: ImportMapType, importLine: string) => ({
|
(acc: ImportMapType, importLine: string) => ({
|
||||||
...acc,
|
...acc,
|
||||||
[importLine]: importLine.replace(/.css/, ".css?inline"),
|
[importLine]: importLine.replace(/\.css/, ".css?inline"),
|
||||||
}),
|
}),
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
|
|
Reference in New Issue