You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Fix unicode completions in autocomplete.
Fixes vector-im/vector-web#2208
This commit is contained in:
@ -18,7 +18,7 @@ export default class AutocompleteProvider {
|
|||||||
let commandRegex = this.commandRegex;
|
let commandRegex = this.commandRegex;
|
||||||
|
|
||||||
if (force && this.shouldForceComplete()) {
|
if (force && this.shouldForceComplete()) {
|
||||||
commandRegex = /[^\W]+/g;
|
commandRegex = /\S+/g;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (commandRegex == null) {
|
if (commandRegex == null) {
|
||||||
|
@ -6,7 +6,7 @@ import {PillCompletion} from './Components';
|
|||||||
import {getDisplayAliasForRoom} from '../Rooms';
|
import {getDisplayAliasForRoom} from '../Rooms';
|
||||||
import sdk from '../index';
|
import sdk from '../index';
|
||||||
|
|
||||||
const ROOM_REGEX = /(?=#)([^\s]*)/g;
|
const ROOM_REGEX = /(?=#)(\S*)/g;
|
||||||
|
|
||||||
let instance = null;
|
let instance = null;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import Fuse from 'fuse.js';
|
|||||||
import {PillCompletion} from './Components';
|
import {PillCompletion} from './Components';
|
||||||
import sdk from '../index';
|
import sdk from '../index';
|
||||||
|
|
||||||
const USER_REGEX = /@[^\s]*/g;
|
const USER_REGEX = /@\S*/g;
|
||||||
|
|
||||||
let instance = null;
|
let instance = null;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user