File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2121 "scripts" : {
2222 "build:prod" : " ./build.sh" ,
2323 "generateDocs" : " typedoc --options typedoc.cjs" ,
24- "lint" : " eslint --ext ts src __mocks__ __tests__" ,
24+ "lint" : " eslint --ext ts src __mocks__ __tests__ --max-warnings 0 " ,
2525 "test" : " node --experimental-vm-modules --es-module-specifier-resolution=node node_modules/jest/bin/jest.js"
2626 },
2727 "keywords" : [
Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ const formats = {
8484export type Formats = typeof formats
8585
8686const formatString = ( request : Request , str : string ) : string =>
87- str . replace ( / : [ a - z A - Z ] + / gu, ( str ) : string => {
88- const key = str . slice ( 1 ) // Remove colon
87+ str . replace ( / : [ a - z A - Z ] + / gu, ( param ) : string => {
88+ const key = param . slice ( 1 ) // Remove colon
8989
9090 return key in tokens ? tokens [ key as keyof typeof tokens ] ( request ) : str
9191 } )
You can’t perform that action at this time.
0 commit comments