We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 4e8730a commit e10f426Copy full SHA for e10f426
extensions/hyper-link/src/index.ts
@@ -41,10 +41,10 @@ class HyperLinkIcon extends WidgetType {
41
42
function hyperLinkDecorations(view: EditorView, anchor?: HyperLinkExtensionOptions['anchor']) {
43
const widgets: Array<Range<Decoration>> = [];
44
- const doc = view.state.doc;
+ const doc = view.state.doc.toString();
45
let match;
46
47
- while ((match = defaultRegexp.exec(doc.toString())) !== null) {
+ while ((match = defaultRegexp.exec(doc)) !== null) {
48
const from = match.index;
49
const to = from + match[0].length;
50
const widget = Decoration.widget({
0 commit comments