stylelint-plugin-logical-css 1.1.0 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-plugin-logical-css",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "A Stylelint plugin to enforce the use of logical CSS properties, values and units.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -10,7 +10,7 @@ export function getValueUnit(value) {
10
10
  const matches = Array.isArray(match) ? match : [match];
11
11
 
12
12
  const matchedUnit = matches.map(
13
- (match) => physicalUnits[match.replace(/[0-9]/g, '')],
13
+ (match) => physicalUnits[match.replace(/[0-9](\.[0-9])?/g, '')],
14
14
  );
15
15
 
16
16
  return matchedUnit;