Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Strip unicode null terminator from returned string
Browse files Browse the repository at this point in the history
  • Loading branch information
bsclifton committed Sep 7, 2018
1 parent 7d5264d commit 2366ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sessionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ module.exports.runImportDefaultSettings = (data) => {
}

const getCanonicalCountryName = () => {
const countryName = app.getCountryName()
const countryName = (app.getCountryName() || '').replace(/\0/g, '')
switch (countryName) {
case 'US':
case 'Vereinigte Staaten':
Expand Down

0 comments on commit 2366ee1

Please sign in to comment.