@getcoherent/core 0.6.53 → 0.6.55
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.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1202,6 +1202,7 @@ var ComponentManager = class {
|
|
|
1202
1202
|
* Check if two class names are similar (simple heuristic)
|
|
1203
1203
|
*/
|
|
1204
1204
|
isSimilarClassName(className1, className2) {
|
|
1205
|
+
if (!className1 || !className2) return false;
|
|
1205
1206
|
const classes1 = className1.split(" ").sort();
|
|
1206
1207
|
const classes2 = className2.split(" ").sort();
|
|
1207
1208
|
const common = classes1.filter((c) => classes2.includes(c));
|