@plumeria/eslint-plugin 7.6.1 → 8.0.0
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.
|
@@ -1051,14 +1051,14 @@ exports.validateValues = {
|
|
|
1051
1051
|
return false;
|
|
1052
1052
|
}
|
|
1053
1053
|
if (parts.length === 1) {
|
|
1054
|
-
return new RegExp(`^(${numberPattern})$`).test(parts[0]);
|
|
1054
|
+
return new RegExp(`^(${numberPattern}|from-font)$`).test(parts[0]);
|
|
1055
1055
|
}
|
|
1056
1056
|
if (parts.length === 2) {
|
|
1057
1057
|
const isValidFirstPart = new RegExp(`^(${fontMetric})$`).test(parts[0]);
|
|
1058
1058
|
if (!isValidFirstPart) {
|
|
1059
1059
|
return false;
|
|
1060
1060
|
}
|
|
1061
|
-
return new RegExp(`^(${numberPattern})$`).test(parts[1]);
|
|
1061
|
+
return new RegExp(`^(${numberPattern}|from-font)$`).test(parts[1]);
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
1064
|
const fontSizeAdjustProperties = ['fontSizeAdjust'];
|