From 531a18810bf6c9a130d2f36362259198e143d4ae Mon Sep 17 00:00:00 2001 From: Robert Wolff Date: Thu, 25 Jul 2024 12:07:14 +0200 Subject: [PATCH] fix typo in regexp --- tests/integration/issue_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/issue_test.go b/tests/integration/issue_test.go index 54485ee2d..470e2a8df 100644 --- a/tests/integration/issue_test.go +++ b/tests/integration/issue_test.go @@ -239,7 +239,7 @@ func testNewIssue(t *testing.T, session *TestSession, user, repo, title, content assert.Contains(t, val, title) // test for first line only and if it contains only letters and spaces contentFirstLine := strings.Split(content, "\n")[0] - patNotLetterOrSpace, _ := regexp.MustCompile("[^\\p{L}\\s]") + patNotLetterOrSpace := regexp.MustCompile(`[^\p{L}\s]`) if len(contentFirstLine) != 0 && !patNotLetterOrSpace.MatchString(contentFirstLine) { val = htmlDoc.doc.Find(".comment .render-content p").First().Text() assert.Equal(t, contentFirstLine, val)