From 51fc17cf985344a8ea563d3579f4c4ce34107fb8 Mon Sep 17 00:00:00 2001 From: Aly Thobani Date: Sat, 27 Apr 2024 13:09:03 -0700 Subject: [PATCH] refactor: add comment --- utils/jumpToPattern.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/jumpToPattern.ts b/utils/jumpToPattern.ts index cff6a9d..f44f98b 100644 --- a/utils/jumpToPattern.ts +++ b/utils/jumpToPattern.ts @@ -1,6 +1,8 @@ import { Editor as CodeMirrorEditor } from "codemirror"; import { EditorPosition } from "obsidian"; import { shim as matchAllShim } from "string.prototype.matchall"; + +// Polyfill for String.prototype.matchAll, in case it's not available (pre-ES2020) matchAllShim(); export function jumpToPattern({