Skip to content

fix(emotion): fix getShortHandValue not trimming input string#2497

Open
matyasf wants to merge 1 commit intomasterfrom
fix_getshorthandvalue_whitespace
Open

fix(emotion): fix getShortHandValue not trimming input string#2497
matyasf wants to merge 1 commit intomasterfrom
fix_getshorthandvalue_whitespace

Conversation

@matyasf
Copy link
Copy Markdown
Collaborator

@matyasf matyasf commented Apr 1, 2026

the fix trims whitespace from the end/beginning. It also handles correctly if there are multiple whitespaces in the middle

Fixes INSTUI-4981

the fix trims whitespace from the end/beginning. It also handles correctly if there are multiple
whitespaces in the middle

INSTUI-4981
@matyasf matyasf self-assigned this Apr 1, 2026
expect(r5).toEqual('15px .2rem')
})

it('trims whitespaces correctly', () => {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these cases were throwing warnings and emitting the wrong number of results

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2497/

Built to branch gh-pages at 2026-04-01 10:01 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@matyasf matyasf requested review from ToMESSKa and joyenjoyer April 1, 2026 11:08
Copy link
Copy Markdown
Contributor

@joyenjoyer joyenjoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants