Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sanitise memoization key #7

Merged
merged 1 commit into from
Dec 10, 2018
Merged

fix: sanitise memoization key #7

merged 1 commit into from
Dec 10, 2018

Conversation

henrinormak
Copy link
Contributor

Fixes #6

Changed both the get as well as the set to use a common variable, which is only calculated when memoize option is enabled.

@jamuhl jamuhl merged commit dd5aee8 into i18next:master Dec 10, 2018
@jamuhl
Copy link
Member

jamuhl commented Dec 10, 2018

perfect...published in i18next-icu@1.0.0

@henrinormak
Copy link
Contributor Author

Thanks! 👍

@henrinormak
Copy link
Contributor Author

Just realised that this will only replace the first occurrence of . 🤦‍♂️, the replace call should've been .replace(/\./g, '###') to replace all of them. Shall I open a new PR? Sorry about this, I should've verified before opening the PR.

@jamuhl
Copy link
Member

jamuhl commented Dec 11, 2018

could happen...yes PR would be welcome

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.

2 participants