Skip to content

Commit

Permalink
fix(main.js): update pathRegex to use exec instead of match for more …
Browse files Browse the repository at this point in the history
…efficient usage
  • Loading branch information
timohubois committed Jul 16, 2024
1 parent bb8f9bd commit 88317fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ async function getDataFromMonday() {

// Extract boardId and pulseId from path
const pathRegex = /\/boards\/(\d+)(?:\/?.*\/pulses\/(\d+))?/;
const pathMatch = path.match(pathRegex);
const pathMatch = pathRegex.exec(path);

if (pathMatch) {
boardId = pathMatch[1];
Expand Down

0 comments on commit 88317fd

Please sign in to comment.