@plumeria/eslint-plugin 10.1.0 → 10.1.2
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.
|
@@ -617,13 +617,14 @@ exports.validateValues = {
|
|
|
617
617
|
const borderRadiusRegex = new RegExp(`^(${lengthValuePattern})( (?!\\s)(${lengthValuePattern})){0,3}(\\s*/\\s*(${lengthValuePattern})( (?!\\s)(${lengthValuePattern})){0,3})?$`);
|
|
618
618
|
const borderStyleRegex = new RegExp(`^(${lineStyle})( (?!\\s)(${lineStyle})){0,3}$`);
|
|
619
619
|
function createBorderImageRegex() {
|
|
620
|
-
const
|
|
621
|
-
const
|
|
622
|
-
const
|
|
623
|
-
const
|
|
624
|
-
const
|
|
625
|
-
const
|
|
626
|
-
const
|
|
620
|
+
const imageSource = `(?:${imageRegex.source.slice(1, -1)}|${varString}|none)`;
|
|
621
|
+
const sliceStr = sliceValuePattern.slice(1, -1);
|
|
622
|
+
const widthStr = `(?:${varString}|${lengthPattern}|${percentagePattern}|${numberPattern}|auto)`;
|
|
623
|
+
const outsetStr = `(?:${varString}|${lengthPattern}|${numberPattern})`;
|
|
624
|
+
const slicePart = `(?:\\s+(?:${varString}|${sliceStr}))?`;
|
|
625
|
+
const widthPart = `(?:\\s*\\/\\s*${widthStr}(?:\\s+${widthStr}){0,3})?`;
|
|
626
|
+
const outsetPart = `(?:\\s*\\/\\s*${outsetStr}(?:\\s+${outsetStr}){0,3})?`;
|
|
627
|
+
const repeatPart = `(?:\\s+(?:${varString}|stretch|repeat|round|space)){0,2}?`;
|
|
627
628
|
return new RegExp(`^${imageSource}` +
|
|
628
629
|
`${slicePart}` +
|
|
629
630
|
`${widthPart}` +
|