Skip to content

Commit

Permalink
fix: correctly escape . in URL regex (#1895)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Nov 12, 2023
1 parent c2b7cb9 commit 8dde11e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/probot-octokit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe("ProbotOctokit", () => {
} else {
expect(url).toMatch(
new RegExp(
"^https://api.github.com/repositories/[0-9]+/issues\\?per_page=[0-9]+&page=[0-9]+$",
"^https://api\\.github\\.com/repositories/[0-9]+/issues\\?per_page=[0-9]+&page=[0-9]+$",
),
);
}
Expand Down Expand Up @@ -270,7 +270,7 @@ describe("ProbotOctokit", () => {
} else {
expect(url).toMatch(
new RegExp(
"^https://api.github.com/repositories/[0-9]+/issues\\?per_page=[0-9]+&page=[0-9]+$",
"^https://api\\.github\\.com/repositories/[0-9]+/issues\\?per_page=[0-9]+&page=[0-9]+$",
),
);
}
Expand Down Expand Up @@ -324,7 +324,7 @@ describe("ProbotOctokit", () => {
} else {
expect(url).toMatch(
new RegExp(
"^https://api.github.com/repositories/[0-9]+/issues\\?per_page=[0-9]+&page=[0-9]+$",
"^https://api\\.github\\.com/repositories/[0-9]+/issues\\?per_page=[0-9]+&page=[0-9]+$",
),
);
}
Expand Down

0 comments on commit 8dde11e

Please sign in to comment.