fix
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -47,7 +47,7 @@ function App() { | ... | @@ -47,7 +47,7 @@ function App() { |
| 47 | const userInputRegex = new RegExp(`\\b(${userInput.join('|')})\\b`, 'gi'); | 47 | const userInputRegex = new RegExp(`\\b(${userInput.join('|')})\\b`, 'gi'); |
| 48 | const inputMatches = chatInput.match(userInputRegex); | 48 | const inputMatches = chatInput.match(userInputRegex); |
| 49 | 49 | ||
| 50 | const userPunctuation = ['\.', '?', '!', ':', ';', ',']; | 50 | const userPunctuation = ['.', '?', '!', ':', ';', ',']; |
| 51 | const userPunctuationRegex = new RegExp(`[${userPunctuation.join('')}]$`); | 51 | const userPunctuationRegex = new RegExp(`[${userPunctuation.join('')}]$`); |
| 52 | const punctuationMatches = chatInput.match(userPunctuationRegex); | 52 | const punctuationMatches = chatInput.match(userPunctuationRegex); |
| 53 | 53 | ... | ... |
-
Please register or sign in to post a comment