From 484658c23a93bd3b756640d9a171d43f4bb4f719 Mon Sep 17 00:00:00 2001 From: Murderlon Date: Tue, 1 Oct 2024 09:43:26 +0200 Subject: [PATCH] Fix lint --- packages/server/src/handlers/GetHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/handlers/GetHandler.ts b/packages/server/src/handlers/GetHandler.ts index e9ee3e7d..326da26a 100644 --- a/packages/server/src/handlers/GetHandler.ts +++ b/packages/server/src/handlers/GetHandler.ts @@ -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' @@ -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!#$%&'*+.^_`|~-]+|"(?:[^"\\]|\.)*"))*)$/ /**