We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1cb80f commit 0d66745Copy full SHA for 0d66745
lib/components/form/user-settings-i18n.js
@@ -16,7 +16,12 @@ function stripAllButNameOfAddress(string) {
16
17
// If string contains any letters, split the string!
18
if (/[a-zA-Z]/g.test(string)) {
19
- return string.split(',')[0]
+ let newString = string.split(',')[0]
20
+ // If there is an open parenthesis without a close (user saved place), add one.
21
+ if (newString.includes('(') && !newString.includes(')')) {
22
+ newString = newString + ')'
23
+ }
24
+ return newString
25
}
26
return string
27
0 commit comments