There was an error while loading. Please reload this page.
1 parent 361b4c3 commit 70997d0Copy full SHA for 70997d0
1 file changed
index.js
@@ -5,8 +5,8 @@ const chromium = require("@sparticuz/chromium");
5
const imagePath = "/tmp/screenshot.jpg";
6
const baseUrl = "https://exercism.org";
7
8
-const solutionRegex = /^\/tracks\/(?<track_slug>.+?)\/exercises\/(?<exercise_slug>.+?)\/solutions\/(?<user_handle>.+?)\.jpg$/;
9
-const profileRegex = /^\/profiles\/(?<user_handle>.+?)\.jpg$/;
+const solutionRegex = /^\/tracks\/(?<track_slug>.+?)\/exercises\/(?<exercise_slug>.+?)\/solutions\/(?<user_handle>.+?)(?:-\d{10})?\.jpg$/;
+const profileRegex = /^\/profiles\/(?<user_handle>.+?)(?:-\d{10})?\.jpg$/;
10
11
const crypto = require("crypto");
12
0 commit comments