refactor: renamed file and removed unneeded exports

This commit is contained in:
Aly Thobani 2024-04-27 10:39:16 -07:00
parent 128f1834e9
commit 7ca0e78ebc
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import { MotionFn } from "./utils/defineObsidianVimMotion";
import { jumpToPattern } from "./utils/getNthInstanceOfPattern";
import { jumpToPattern } from "./utils/jumpToPattern";
const HEADING_REGEX = /^#+ /gm;

View file

@ -1,5 +1,5 @@
import { MotionFn } from "./utils/defineObsidianVimMotion";
import { jumpToPattern } from "./utils/getNthInstanceOfPattern";
import { jumpToPattern } from "./utils/jumpToPattern";
const LINK_REGEX = /\[\[[^\]\]]+?\]\]/g;

View file

@ -34,7 +34,7 @@ export function jumpToPattern({
* Returns the index of (up to) the n-th instance of a pattern in a string after a given starting
* index. If the pattern is not found at all, returns undefined.
*/
export function getNthNextInstanceOfPattern({
function getNthNextInstanceOfPattern({
content,
regex,
startingIdx,
@ -59,7 +59,7 @@ export function getNthNextInstanceOfPattern({
* Returns the index of (up to) the nth-last instance of a pattern in a string before a given
* starting index. If the pattern is not found at all, returns undefined.
*/
export function getNthPreviousInstanceOfPattern({
function getNthPreviousInstanceOfPattern({
content,
regex,
startingIdx,