Skip to content

Commit 78a89a0

Browse files
committed
Fix lint errors
1 parent a2359f4 commit 78a89a0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/components/markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ function FrontmatterValue({ entry: [key, value] }: { entry: [string, unknown] })
442442
}
443443

444444
case "tags": {
445-
const tagsSchema = z.array(z.string().regex(/^[\p{L}][\p{L}\p{N}_\-\/]*$/u))
445+
const tagsSchema = z.array(z.string().regex(/^[\p{L}][\p{L}\p{N}_\-/]*$/u))
446446
const parsedTags = tagsSchema.safeParse(value)
447447
if (!parsedTags.success) break
448448

src/hooks/search-param.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export function useSearchParam<T = string>(
4848
searchParamsRef.current = searchParams
4949
}, [searchParams])
5050

51+
// eslint-disable-next-line react-hooks/exhaustive-deps
5152
const setParam = React.useCallback(
5253
debounce((value: T) => {
5354
const searchString = qs.stringify(

src/utils/parse-note.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export const parseNote = memoize((text: string) => {
130130
}
131131

132132
// Add tags from frontmatter
133-
const tagsSchema = z.array(z.string().regex(/^[\p{L}][\p{L}\p{N}_\-\/]*$/u))
133+
const tagsSchema = z.array(z.string().regex(/^[\p{L}][\p{L}\p{N}_\-/]*$/u))
134134
const parsedTags = tagsSchema.safeParse(frontmatter.tags)
135135

136136
if (parsedTags.success) {

0 commit comments

Comments
 (0)