Skip to content

Commit

Permalink
Merge pull request #91 from arati-tekdi/main
Browse files Browse the repository at this point in the history
Change in regex
  • Loading branch information
Shubham4026 authored Feb 25, 2025
2 parents 1ca9d57 + dda0804 commit c8b0b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/middleware/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ export const apiListForAcademicYear = [
];

function convertToRegex(pattern) {
const regexString = pattern.replace(/:[^\s/]+/g, '([\\w:-_]+)');
const regexString = pattern.replace(/:[^\s/]+/g, '([\\w:_-]+)');
return new RegExp(`^${regexString}$`);
}

Expand Down

0 comments on commit c8b0b5f

Please sign in to comment.