2bf0467a by RSA

fix

1 parent f6b58338
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!