Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(["'`])(?:(?!\1)(?:.|\n))*?(?<marker>--socio(?:-\w+?)*)(?:[;\s]+)?\1
/
ig
Input 1
New
<script lang="ts"> //imports import { SocioClient, type ClientMessageDataObj } from "socio/core-client"; import {sleep} from 'socio/utils' // import { ChatRoomClient, type ChatRoomMessage, HandleChatRoomCMD } from 'socio/chat'; import { log } from "socio/logging"; import type {Bit, id} from 'socio/types' import { onMount, onDestroy } from "svelte"; import { slide } from "svelte/transition"; import toast from 'svelte-french-toast'; //comps import Bloom from "$lib/bloom.svelte"; import Spinner from "$lib/spinner.svelte"; import Button from "$lib/button.svelte"; //variables let ready = false, current_msg = ''; //init SocioClient const sc = new SocioClient("ws://localhost:3000", { verbose: true, name: "Main", // persistent:true }); // const chat = new ChatRoomClient(sc.Serv.bind(sc), (msgs:ChatRoomMessage[]) => { // chat_messages.push(...msgs); // chat_messages = chat_mes