Skip to content

Commit

Permalink
fix code scans; escaping in reges has to be with 2 backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
adelinn authored Apr 18, 2023
1 parent d0cf703 commit df9ae35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = {
}
},
{
urlPattern: new RegExp('^(https|http)://(((dev)?literatureapi\.bcc\.no)|(localhost:58330))/api/(books|Article|article|authors)'),
urlPattern: new RegExp('^(https|http)://(((dev)?literatureapi\\.bcc\\.no)|(localhost:58330))/api/(books|Article|article|authors)'),
handler: 'networkFirst',
options: {
cacheName: "api-calls",
Expand All @@ -62,7 +62,7 @@ module.exports = {
}
},
{
urlPattern: new RegExp('^(https|http)://(((dev)?literatureapi\.bcc\.no)|(localhost:58330))/api/blobs/image'),
urlPattern: new RegExp('^(https|http)://(((dev)?literatureapi\\.bcc\\.no)|(localhost:58330))/api/blobs/image'),
handler: 'staleWhileRevalidate',
options: {
cacheName: "api-images",
Expand Down

0 comments on commit df9ae35

Please sign in to comment.