mirror of
https://github.com/zoriya/yoshiki.git
synced 2025-12-05 22:56:14 +00:00
Fix runtime insertion
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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[][] {
|
||||
|
||||
Reference in New Issue
Block a user