@react-pdf/stylesheet 5.0.0 → 5.0.1
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/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -497,7 +497,7 @@ const transformColor = value => {
|
|
|
497
497
|
};
|
|
498
498
|
|
|
499
499
|
const parse = transformString => {
|
|
500
|
-
const transforms = transformString.trim().split(/\) |\)/);
|
|
500
|
+
const transforms = transformString.trim().split(/\)[ ,]|\)/);
|
|
501
501
|
|
|
502
502
|
// Handle "initial", "inherit", "unset".
|
|
503
503
|
if (transforms.length === 1) {
|
|
@@ -511,7 +511,7 @@ const parse = transformString => {
|
|
|
511
511
|
const splitChar = rawValue.indexOf(',') >= 0 ? ',' : ' ';
|
|
512
512
|
const value = rawValue.split(splitChar).map(val => val.trim());
|
|
513
513
|
parsed.push({
|
|
514
|
-
operation: name,
|
|
514
|
+
operation: name.trim(),
|
|
515
515
|
value
|
|
516
516
|
});
|
|
517
517
|
}
|