Skip to content

Commit

Permalink
simplify components page expression
Browse files Browse the repository at this point in the history
  • Loading branch information
toni-santos committed Nov 7, 2024
1 parent ec3607e commit cddbecd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions content-scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ import { addStarIconToCard } from "./modules/favorite-course";
import { createComponentsPage } from "./pages/components_page";

// prettier-ignore
const GENERIC_SIGARRA_URL: string = "^https:\/\/sigarra.up.pt\/feup\/(pt|en)\/";
const BASE_SIGARRA_URL: string = "^https:\/\/sigarra.up.pt\/feup\/(pt|en)\/";
// prettier-ignore
const BASE_SIGARRA_URL: string = GENERIC_SIGARRA_URL + "(?!.*\/components)";
// prettier-ignore
const COMPONENTS_URL: string = GENERIC_SIGARRA_URL + "(?=.*\/components)";
const COMPONENTS_URL: string = BASE_SIGARRA_URL + "components";
const STUDENT_PAGE_URL: string =
BASE_SIGARRA_URL +
"fest_geral.(cursos_list|curso_percurso_academico_view|curso_posicao_plano_view|ucurr_inscricoes_list|estatutos_regimes_view|info_ingresso_view|info_pessoal_completa_view).*$";
Expand Down

0 comments on commit cddbecd

Please sign in to comment.