pasika 0.10.27 → 0.10.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1129,9 +1129,8 @@ function isColorToken(token, inventory) {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
function isKnown(className, inventory) {
|
|
1131
1131
|
if (className.includes("[") || className.includes("(")) return true;
|
|
1132
|
-
const
|
|
1133
|
-
const
|
|
1134
|
-
const utility = segments[segments.length - 1] ?? "";
|
|
1132
|
+
const segments = className.replace(/!+$/, "").split(":");
|
|
1133
|
+
const utility = (segments[segments.length - 1] ?? "").split("/")[0] ?? "";
|
|
1135
1134
|
if (!utility.includes("-")) return true;
|
|
1136
1135
|
const dash = utility.indexOf("-");
|
|
1137
1136
|
const firstTwo = utility.split("-").slice(0, 2).join("-");
|