Skip to content

Commit

Permalink
FurryNetwork: Filter . in tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdicarlo committed Jun 15, 2021
1 parent f744f6c commit f4f528c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class FurryNetwork extends BaseWebsiteService implements WebsiteService {

formatTags(defaultTags: string[] = [], other: string[] = []): any {
return super.formatTags(defaultTags, other, '-').filter(tag => tag.length <= 30 && tag.length >= 3)
.map(tag => { return tag.replace(/(\(|\)|:|#|;|\]|\[|')/g, '').replace(/(\\|\/)/g, '-').replace(/\?/g, 'unknown') })
.map(tag => { return tag.replace(/(\(|\)|:|#|;|\]|\[|'|\.)/g, '').replace(/(\\|\/)/g, '-').replace(/\?/g, 'unknown') })
.filter(tag => tag.length >= 3)
.slice(0, 30);
}
Expand Down

0 comments on commit f4f528c

Please sign in to comment.