Fix runtime insertion

This commit is contained in:
Zoe Roux
2022-11-30 22:23:33 +09:00
parent fab6aad87d
commit 679464df0e
3 changed files with 4 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
"private": true,
"scripts": {
"build": "yarn workspace yoshiki build",
"watch": "yarn workspace yoshiki watch",
"publish": "yarn build && yarn workspace yoshiki npm publish",
"next": "yarn workspace next-example dev",
"expo": "yarn workspace expo-example dev",

View File

@@ -1,6 +1,6 @@
{
"name": "yoshiki",
"version": "0.2.5",
"version": "0.2.6",
"author": "Zoe Roux <zoe.roux@sdg.moe> (https://github.com/AnonymusRaccoon)",
"license": "MIT",
"keywords": [

View File

@@ -105,7 +105,7 @@ export class StyleRegistry {
}
const lines = existingStyle.split("\n");
const comReg = new RegExp("/*(\\d+)*/");
const comReg = new RegExp("/\\*(\\d+)\\*/");
for (const [i, chunk] of newChunks.entries()) {
if (!chunk.length) continue;
@@ -127,7 +127,7 @@ export class StyleRegistry {
}
}
return existingStyle;
return lines.join("\n");
}
splitInChunks(classes: string[]): string[][] {