Skip to content

fix(search): Replace crash empty string pattern#101017

Merged
roblourens merged 1 commit intomicrosoft:masterfrom
Titozzz:patch-1
Jun 25, 2020
Merged

fix(search): Replace crash empty string pattern#101017
roblourens merged 1 commit intomicrosoft:masterfrom
Titozzz:patch-1

Conversation

@Titozzz
Copy link
Contributor

@Titozzz Titozzz commented Jun 25, 2020

Replacing by an empty string pattern could lead to an error when trying to conserve case

Cannot read 'toUpperCase' property of undefined

To test replace "somethingWithEnding" by searching "Ending" and replacing by "" with automatic case enabled

This PR fixes #80553 (probably)

Replacing by an empty string pattern could lead to an error when trying to conserve case
Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

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

Good catch. Thank you!

@roblourens roblourens merged commit 3121d04 into microsoft:master Jun 25, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace - Cannot read 'toUpperCase' property of undefined

2 participants