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 10f131c commit 3d71be6Copy full SHA for 3d71be6
src/projects/detail/components/SkillsQuestion/SkillsQuestion.jsx
@@ -98,9 +98,9 @@ class SkillsQuestion extends React.Component {
98
const indexOfSpace = value.indexOf(' ')
99
const indexOfSemiColon = value.indexOf(';')
100
101
- // if user enter only ' ' or ';' we should clean it to not allow
+ // if user enter ' ' or ';' in the start of the input, we should clean it to not allow
102
if (indexOfSpace === 0 || indexOfSemiColon === 0 ) {
103
- return value.replace(' ', '').replace(';', '')
+ return value.slice(1)
104
}
105
106
if (indexOfSemiColon >= 1 ) {
0 commit comments