Skip to content

Commit

Permalink
fix(lint): 🚨 Warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
  • Loading branch information
whizzzkid committed Aug 12, 2023
1 parent e592755 commit 5c85d84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion add-on/src/lib/redirect-handler/blockOrObserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const DELETE_RULE_REQUEST = 'DELETE_RULE_REQUEST'
export const DELETE_RULE_REQUEST_SUCCESS = 'DELETE_RULE_REQUEST_SUCCESS'

// We need to match the rest of the URL, so we can use a wildcard.
export const RULE_REGEX_ENDING = `((?:[^\\.]|$).*)$`
export const RULE_REGEX_ENDING = '((?:[^\\.]|$).*)$'

interface regexFilterMap {
id: number
Expand Down
8 changes: 4 additions & 4 deletions test/functional/lib/ipfs-request-gateway-redirect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ describe(`[${manifestVersion}] gateway-redirect:`, function () {
modifiedRequestCallResp: await modifyRequest.onBeforeRequest(request),
MV2Expectation: `http://localhost:8080/ipfs/${cid}/`,
MV3Expectation: {
origin: `^https:\\:\\/\\/(.*?)\\.(ipfs|ipns)\\.dweb\\.link\\/`,
origin: '^https:\\:\\/\\/(.*?)\\.(ipfs|ipns)\\.dweb\\.link\\/',
destination: 'http://localhost:8080/\\2/\\1/\\3'
}
})
Expand All @@ -340,7 +340,7 @@ describe(`[${manifestVersion}] gateway-redirect:`, function () {
modifiedRequestCallResp: await modifyRequest.onBeforeRequest(request),
MV2Expectation: `http://localhost:8080/ipfs/${cid}/`,
MV3Expectation: {
origin: `^https:\\:\\/\\/(.*?)\\.(ipfs|ipns)\\.cf\\-ipfs\\.com\\/`,
origin: '^https:\\:\\/\\/(.*?)\\.(ipfs|ipns)\\.cf\\-ipfs\\.com\\/',
destination: 'http://localhost:8080/\\2/\\1/\\3'
}
})
Expand All @@ -366,8 +366,8 @@ describe(`[${manifestVersion}] gateway-redirect:`, function () {
modifiedRequestCallResp: await modifyRequest.onBeforeRequest(request),
MV2Expectation: `http://localhost:8080/ipns/${peerid}/`,
MV3Expectation: {
origin: `^https:\\:\\/\\/(.*?)\\.(ipfs|ipns)\\.dweb\\.link\\/`,
destination: `http://localhost:8080/\\2/\\1/\\3`
origin: '^https:\\:\\/\\/(.*?)\\.(ipfs|ipns)\\.dweb\\.link\\/',
destination: 'http://localhost:8080/\\2/\\1/\\3'
}
})
})
Expand Down

0 comments on commit 5c85d84

Please sign in to comment.