Skip to content

Commit

Permalink
Edit regex patterns to match alternative wordings
Browse files Browse the repository at this point in the history
- Aprobado | Promocionado
- Desaprobado | Reprobado
  • Loading branch information
juliancasaburi authored Sep 10, 2023
1 parent ef5b1a0 commit f02aefc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Define regular expressions to match scores
const averageWithoutFailsRegex = /(\d+) \(([^)]+)\) Aprobado/g;
const averageWithFailsRegex = /(\d+) \(([^)]+)\) Desaprobado/g;
const averageWithoutFailsRegex = /(\d+) \(([^)]+)\) (Aprobado|Promocionado)/g;
const averageWithFailsRegex = /(\d+) \(([^)]+)\) (Desaprobado|Reprobado)/g;

// Create a MutationObserver to watch for changes in the "kernel_contenido" div
const kernelContenido = document.getElementById("kernel_contenido");
Expand Down

0 comments on commit f02aefc

Please sign in to comment.