Skip to content

Commit

Permalink
fix: 함수 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Aug 14, 2024
1 parent da3b874 commit f5118a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/utils/getEventIdByUrl.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const extractIdFromUrl = (url: string) => {
const extractEventIdFromUrl = (url: string) => {
const regex = /\/event\/([a-zA-Z0-9-]+)\//;
const match = url.match(regex);
return match ? match[1] : null;
};

const getEventIdByUrl = () => {
return extractIdFromUrl(window.location.pathname) || '';
return extractEventIdFromUrl(window.location.pathname) || '';
};

export default getEventIdByUrl;

0 comments on commit f5118a3

Please sign in to comment.