dot-language-support 4.0.3 → 4.0.4
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.
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2425,6 +2425,7 @@ function forEachChild(node, cbNode, cbNodes) {
|
|
|
2425
2425
|
|
|
2426
2426
|
//#endregion
|
|
2427
2427
|
//#region src/checker.ts
|
|
2428
|
+
const validShapesLowerCase = new Set(shapes.map((s) => s.toLowerCase()));
|
|
2428
2429
|
function checkSourceFile(file) {
|
|
2429
2430
|
const g = file.graph;
|
|
2430
2431
|
if (g) {
|
|
@@ -2468,7 +2469,7 @@ function checkShapeLabelValues(root) {
|
|
|
2468
2469
|
if (leftId.text.trim().toLocaleLowerCase() !== "shape") return;
|
|
2469
2470
|
const rightText = rightId.text.trim();
|
|
2470
2471
|
const shapeCandidate = rightText.toLowerCase();
|
|
2471
|
-
if (
|
|
2472
|
+
if (validShapesLowerCase.has(shapeCandidate)) return;
|
|
2472
2473
|
invalidShapes.push({
|
|
2473
2474
|
category: diagnosticCategory.Warning,
|
|
2474
2475
|
code: createCheckerError(checkError.InvalidShapeName),
|