Skip to content

Commit

Permalink
remove qs from paths (#850)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia authored Sep 24, 2024
1 parent 605d879 commit 7ce3275
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions daemon/fs/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { createReadWriteLock, type RwLock } from "../../daemon/async.ts";
import { Hono } from "../../runtime/deps.ts";
import { git, lockerGitAPI } from "../git.ts";
import { VERBOSE } from "../main.ts";
import { inferBlockType } from "../meta.ts";
import { broadcast } from "../sse/channel.ts";
import {
applyPatch,
Expand All @@ -13,7 +14,6 @@ import {
type Patch,
type UpdateResponse,
} from "./common.ts";
import { inferBlockType } from "../meta.ts";

const inferMetadata = async (filepath: string): Promise<Metadata | null> => {
try {
Expand Down Expand Up @@ -102,7 +102,8 @@ const shouldIgnore = (path: string) =>
path.includes(`${SEPARATOR}.git`) ||
path.includes(`${SEPARATOR}node_modules${SEPARATOR}`);

const systemPathFromBrowser = (url: string) => {
const systemPathFromBrowser = (pathAndQuery: string) => {
const [url] = pathAndQuery.split("?");
const [_, ...segments] = url.split("/file");
const s = segments.join("/file");

Expand Down

0 comments on commit 7ce3275

Please sign in to comment.