Merge pull request #481 from aviraldg/fix-autocomplete-unicode

Fix unicode completions in autocomplete.
pull/21833/head
Matthew Hodgson 2016-09-16 16:44:47 +01:00 committed by GitHub
commit 891578d800
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ export default class AutocompleteProvider {
let commandRegex = this.commandRegex;
if (force && this.shouldForceComplete()) {
commandRegex = /[^\W]+/g;
commandRegex = /\S+/g;
}
if (commandRegex == null) {

View File

@ -6,7 +6,7 @@ import {PillCompletion} from './Components';
import {getDisplayAliasForRoom} from '../Rooms';
import sdk from '../index';
const ROOM_REGEX = /(?=#)([^\s]*)/g;
const ROOM_REGEX = /(?=#)(\S*)/g;
let instance = null;

View File

@ -5,7 +5,7 @@ import Fuse from 'fuse.js';
import {PillCompletion} from './Components';
import sdk from '../index';
const USER_REGEX = /@[^\s]*/g;
const USER_REGEX = /@\S*/g;
let instance = null;