Commit a022b757 authored by Jakob Moser's avatar Jakob Moser
Browse files

Don't look for full .my-little-secret filename in one line

Closes #71 (a student's solution was not accepted because they
used ls -la /resources/.my-little-secret which caused the output to
be wrapped to another line, which means the filename wasn't
found in full in one line)
parent bd59ca18
Loading
Loading
Loading
Loading
+1 −1
Changes for static/js/exercises.mjs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ export const pooltest = test("Pooltest Wintersemester 2022/2023", async function

        this.verify().hasOutput((outputLines) => {
            for(const line of outputLines) {
                if(line.match(/.*-r--------.*\.my-little-secret.*/)) {
                if(line.match(/.*-r--------.*\.my-little-s(ecret)?.*/)) {
                    return true
                }
            }