Skip to content

Commit

Permalink
Fix: URL pattern to ignore IDs for project pages
Browse files Browse the repository at this point in the history
  • Loading branch information
amasin76 committed Sep 22, 2023
1 parent dd9c456 commit 7d0e7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Popup: React.FC = () => {

useEffect(() => {
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
const projectUrlPattern = new RegExp("^https://intranet.alxswe.com/projects/\\d+$");
const projectUrlPattern = new RegExp("^https://intranet.alxswe.com/projects/\\d+");
const url = tabs[0].url;
console.log(url, projectUrlPattern.test(url));

Expand Down

0 comments on commit 7d0e7e6

Please sign in to comment.