PLT-5601 RN: autocompleting stopped when non-word chars are typed, even if there's an exact match (#288)
This commit is contained in:
parent
59ca3695b5
commit
90ac1fa625
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ import {makeStyleSheetFromTheme, changeOpacity} from 'app/utils/theme';
|
|||
|
||||
import {RequestStatus} from 'service/constants';
|
||||
|
||||
const AT_MENTION_REGEX = /\B@\w*$/i;
|
||||
const AT_MENTION_REGEX = /\B(@([^@\r\n\s]*))$/i;
|
||||
|
||||
const getStyleFromTheme = makeStyleSheetFromTheme((theme) => {
|
||||
return StyleSheet.create({
|
||||
|
|
@ -139,7 +139,7 @@ export default class AtMention extends Component {
|
|||
return;
|
||||
}
|
||||
|
||||
const matchTerm = match[0].substring(1);
|
||||
const matchTerm = match[2];
|
||||
|
||||
if (matchTerm !== this.state.matchTerm) {
|
||||
this.setState({
|
||||
|
|
|
|||
Loading…
Reference in a new issue