Skip to content

Commit b2da848

Browse files
fix(web): import the relative-path check from its new shared home
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent dfd7edf commit b2da848

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/markdown-links.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { fileBasename, workspaceRelativeFilePath } from "@t3tools/shared/path";
22
import {
33
inlineCodeFilePathCandidate,
4+
isRelativeFilePath,
45
normalizeMarkdownLinkDestination,
56
resolveMarkdownFileLinkTarget,
67
} from "@t3tools/shared/markdownLinks";

‎packages/shared/src/markdownLinks.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export function isMarkdownFileLinkLabel(label: string, href: string): boolean {
252252
return destinationPath === labelPath || destinationPath.endsWith(`/${labelPath}`);
253253
}
254254

255-
function isRelativeFilePath(path: string): boolean {
255+
export function isRelativeFilePath(path: string): boolean {
256256
return (
257257
RELATIVE_PATH_PREFIX_PATTERN.test(path) ||
258258
(!path.startsWith("/") && !isWindowsAbsolutePath(path))

0 commit comments

Comments
 (0)