Fix * breaking response URL detection

Fixes #71
This commit is contained in:
Gregory Schier committed 2024-09-11 07:34:58 -07:00
1 parent b5fa3efb9e
commit ed48e1d52a
2 files changed
+7 -3

No files matched your search

@@ -3,7 +3,7 @@ import { Decoration, hoverTooltip, MatchDecorator, ViewPlugin } from '@codemirro
import { EditorView } from 'codemirror';
const REGEX =
/(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]*))/g;
/(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+*~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+*.~#?&/=]*))/g;
const tooltip = hoverTooltip(
(view, pos, side) => {
@@ -43,7 +43,7 @@ const tooltip = hoverTooltip(
};
},
{
hoverTime: 100,
hoverTime: 150,
},
);