Browse Source

ellipsis comment on regex format

ColemanRoo 11 months ago
parent
commit
1e279b4728
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/test/suite/modes.test.ts

+ 1 - 1
src/test/suite/modes.test.ts

@@ -92,7 +92,7 @@ suite("Roo Code Modes", () => {
 			const gradeMessage = globalThis.provider.messages.find(
 				({ type, text }) => type === "say" && !text?.includes("Grade: (1-10)") && text?.includes("Grade:"),
 			)?.text
-			const grade = gradeMessage?.match(`Grade: (10|[1-9])`)
+			const grade = gradeMessage?.match(/Grade: (10|[1-9])/)
 			assert.ok(
 				grade?.includes("Grade: 10") ||
 					grade?.includes("Grade: 9") ||