Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipraty committed Oct 30, 2023
1 parent 24c61af commit cbb41f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/local/src/scraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const element = {
tag: '(\\[.+\\])',
}

const nfsw = [true, false, 'furry', 'guro', 'shota', 'bl']
type Nfsw = boolean | 'furry' | 'guro' | 'shota' | 'bl'
const nsfw = [true, false, 'furry', 'guro', 'shota', 'bl']
type Nsfw = boolean | 'furry' | 'guro' | 'shota' | 'bl'

const format = {
filename: (name: string) => name,
tag: (tags: string) => tags.slice(1, -1).replace(',', ',').split(',').map(s => s.trim()),
nfsw: (tag: string) => nfsw.includes(tag.split('=')[1])
nsfw: (tag: string) => nsfw.includes(tag.split('=')[1])
}

const mapping = {
Expand Down

0 comments on commit cbb41f6

Please sign in to comment.