Skip to content

Commit b20054e

Browse files
committed
👍 case sensitiveにリンクの差分を判定する
1 parent 19d5f3d commit b20054e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

browser/websocket/makeChanges.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export function makeChanges(
4141
// リンクと画像の差分を入れる
4242
const [links, image] = findLinksAndImage(right_.join("\n"));
4343
if (
44-
head.linksLc.length !== links.length ||
45-
!head.linksLc.every((link) => links.includes(link))
44+
head.links.length !== links.length ||
45+
!head.links.every((link) => links.includes(link))
4646
) {
4747
changes.push({ links });
4848
}

browser/websocket/pull.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { Line } from "../../deps/scrapbox.ts";
2-
import { toTitleLc } from "../../title.ts";
32
import { getPage } from "../../rest/pages.ts";
43

54
export interface HeadData {
@@ -8,7 +7,7 @@ export interface HeadData {
87
persistent: boolean;
98
image: string | null;
109
pin: number;
11-
linksLc: string[];
10+
links: string[];
1211
lines: Line[];
1312
}
1413
export async function pull(project: string, title: string): Promise<HeadData> {
@@ -25,7 +24,7 @@ export async function pull(project: string, title: string): Promise<HeadData> {
2524
pageId: id,
2625
persistent,
2726
image,
28-
linksLc: links.map((link) => toTitleLc(link)),
27+
links,
2928
pin,
3029
lines,
3130
};

0 commit comments

Comments
 (0)