Skip to content

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

Merged
matyasf merged 1 commit intomasterfrom
fix_getshorthandvalue_whitespace
Apr 2, 2026
Merged

fix(emotion): fix getShortHandValue not trimming input string#2497
matyasf merged 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
Preview removed because the pull request was closed.
2026-04-02 08:51 UTC

@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

@matyasf matyasf merged commit 75eac6f into master Apr 2, 2026
10 of 11 checks passed
@matyasf matyasf deleted the fix_getshorthandvalue_whitespace branch April 2, 2026 08:51
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