Skip to content

Commit

Permalink
add missing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
rochala committed Dec 8, 2023
1 parent 03fa3e8 commit a3d718e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"source-map-support": "^0.5.21",
"typescript": "^5.1.6",
"vite": "^4.4.12",
"vite-plugin-markdown": "^2.1.0"
"vite-plugin-markdown": "^2.1.0",
"web-tree-sitter": "^0.20.8"
},
"resolutions": {
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const proxy = {
// regex matching snippet ids
const snippet = /(\/[A-Za-z0-9]{22}|\/[A-Za-z0-9]{22}\/([A-Za-z0-9])*[/(0-9)*])/;
const snippetOld = /(\/[0-9]+)/;
const backendUrls = /(\/api\/|\/login|\/logout|\/*.wasm)/;
const backendUrls = /(\/api\/|\/login|\/logout|\/*.wasm|\/*.scm)/;

if(!backendUrls.test(req.url)) {
if (snippet.test(req.url) || snippetOld.test(req.url)) {
Expand Down

0 comments on commit a3d718e

Please sign in to comment.