Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Delusoire committed Aug 20, 2024
1 parent d657fbc commit 792666a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/stdlib/src/expose/Platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export let Platform: Platform;
transformer<Platform>(
(emit) => (str) => {
str = str.replace(
/({(?=[^{}]*(?<=,|)version:[^{}]*(?:{[^{}]*(?:{[^{}]*}[^{}]*)*}[^{}]*)*})(?=[^{}]*(?<=,|)container:[^{}]*(?:{[^{}]*(?:{[^{}]*}[^{}]*)*}[^{}]*)*}))/,
"__Platform=$1",
/{(?=[^{}]*(?:{[^{}]*(?:{[^{}]*(?:{[^{}]*}[^{}]*)*}[^{}]*)*}[^{}]*)*(?<=[,{])version:)(?=[^{}]*(?:{[^{}]*(?:{[^{}]*(?:{[^{}]*}[^{}]*)*}[^{}]*)*}[^{}]*)*(?<=[,{])container:)/,
"__Platform={",
);
Object.defineProperty(globalThis, "__Platform", {
set: emit,
Expand Down

0 comments on commit 792666a

Please sign in to comment.