Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Add null check for options.locale before calling toLowerCase #37

Merged

Conversation

a-stewart
Copy link
Contributor

In the Options object locale is optional:

https://github.com/microsoft/vscode-nls/blob/main/src/common/common.ts#L21

This PR adds a null check before calling toLowerCase on it.

@dbaeumer
Copy link
Member

dbaeumer commented Nov 8, 2021

Thanks!

@dbaeumer dbaeumer merged commit 37d9377 into microsoft:main Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants