You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
fix: code cleanup, fix getCurrentCommand
This commit is contained in:
@@ -18,6 +18,8 @@ export default class AutocompleteProvider {
|
||||
return null;
|
||||
}
|
||||
|
||||
this.commandRegex.lastIndex = 0;
|
||||
|
||||
let match;
|
||||
while ((match = this.commandRegex.exec(query)) != null) {
|
||||
let matchStart = match.index,
|
||||
@@ -33,7 +35,6 @@ export default class AutocompleteProvider {
|
||||
};
|
||||
}
|
||||
}
|
||||
this.commandRegex.lastIndex = 0;
|
||||
return {
|
||||
command: null,
|
||||
range: {
|
||||
|
||||
Reference in New Issue
Block a user