@kontur.candy/generator 4.245.0-lazy-loading.17 → 4.245.0-lazy-loading.18
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 +16 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -114258,6 +114258,22 @@ class PathUtils {
|
|
|
114258
114258
|
return fullPathTokens.slice(0, i + 1).join("/");
|
|
114259
114259
|
}
|
|
114260
114260
|
|
|
114261
|
+
static getFirstInstancePathWithMaskTail(fullPath, mask) {
|
|
114262
|
+
const fullPathTokens = this.split(fullPath);
|
|
114263
|
+
const maskTokens = this.split(mask);
|
|
114264
|
+
let i = 0;
|
|
114265
|
+
|
|
114266
|
+
while (maskTokens[i] && fullPathTokens[i] === maskTokens[i]) {
|
|
114267
|
+
i++;
|
|
114268
|
+
}
|
|
114269
|
+
|
|
114270
|
+
if (maskTokens[i] !== "*") {
|
|
114271
|
+
return null;
|
|
114272
|
+
}
|
|
114273
|
+
|
|
114274
|
+
return fullPathTokens.slice(0, i + 1).concat(maskTokens.slice(i + 1)).join("/");
|
|
114275
|
+
}
|
|
114276
|
+
|
|
114261
114277
|
static isPicklistFieldValueName(valueName) {
|
|
114262
114278
|
return valueName.startsWith("picklist@");
|
|
114263
114279
|
}
|