Revert regex

This commit is contained in:
Cohee 2024-11-24 02:30:04 +02:00
parent df50fece6c
commit 01fdd4206c
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ export class SlashCommandBrowser {
renderInto(parent) {
if (!this.dom) {
const queryRegex = /(?:^|\s+)([^\s"]\S*?)(?:\s+|$)|(?:^|\s+)"(.*?)(?:"|$)(?:\s+|$)/;
const queryRegex = /(?:(?:^|\s+)([^\s"][^\s]*?)(?:\s+|$))|(?:(?:^|\s+)"(.*?)(?:"|$)(?:\s+|$))/;
const root = document.createElement('div'); {
this.dom = root;
const search = document.createElement('div'); {