mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Revert regex
This commit is contained in:
@ -11,7 +11,7 @@ export class SlashCommandBrowser {
|
|||||||
|
|
||||||
renderInto(parent) {
|
renderInto(parent) {
|
||||||
if (!this.dom) {
|
if (!this.dom) {
|
||||||
const queryRegex = /(?:^|\s+)([^\s"]\S*?)(?:\s+|$)|(?:^|\s+)"(.*?)(?:"|$)(?:\s+|$)/;
|
const queryRegex = /(?:(?:^|\s+)([^\s"][^\s]*?)(?:\s+|$))|(?:(?:^|\s+)"(.*?)(?:"|$)(?:\s+|$))/;
|
||||||
const root = document.createElement('div'); {
|
const root = document.createElement('div'); {
|
||||||
this.dom = root;
|
this.dom = root;
|
||||||
const search = document.createElement('div'); {
|
const search = document.createElement('div'); {
|
||||||
|
Reference in New Issue
Block a user