Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed Oct 1, 2024
1 parent 6abebb5 commit 484658c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/src/handlers/GetHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import stream from 'node:stream'

import {BaseHandler} from './BaseHandler'
import {ERRORS, Upload} from '@tus/utils'
import {ERRORS, type Upload} from '@tus/utils'

import type http from 'node:http'
import type {RouteHandler} from '../types'
Expand All @@ -20,6 +20,7 @@ export class GetHandler extends BaseHandler {
* See: https://datatracker.ietf.org/doc/html/rfc1341 (Page 6)
*/
reMimeType =
// biome-ignore lint/suspicious/noControlCharactersInRegex: it's fine
/^(?:application|audio|example|font|haptics|image|message|model|multipart|text|video|x-(?:[0-9A-Za-z!#$%&'*+.^_`|~-]+))\/([0-9A-Za-z!#$%&'*+.^_`|~-]+)((?:[ ]*;[ ]*[0-9A-Za-z!#$%&'*+.^_`|~-]+=(?:[0-9A-Za-z!#$%&'*+.^_`|~-]+|"(?:[^"\\]|\.)*"))*)$/

/**
Expand Down

0 comments on commit 484658c

Please sign in to comment.