diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-06-25 19:31:34 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-15 20:02:44 +0200 |
| commit | a866f64c2e3d9b0b1096e0f269836ec1c320898f (patch) | |
| tree | e7c3c95d7a403fcb1311af0753899c02aad7a29c /www | |
| parent | 560288d7a0de40af32e6f69803f04e1622b2f9bd (diff) | |
| download | wvs-vplan-a866f64c2e3d9b0b1096e0f269836ec1c320898f.tar.gz wvs-vplan-a866f64c2e3d9b0b1096e0f269836ec1c320898f.zip | |
aktualisiere RegEx: Unicode-Pfeil erkennen, Infos besser erkennen
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/index.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/www/js/index.js b/www/js/index.js index 85245a1..8a93757 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -337,32 +337,34 @@ function parseVertretungen(str, username){ /* * Abstandhalter [ ]* * - * ([\wäöü]+) + * ([\wäöü-]+) * Klasse * + * TODO offensichtlich kommt auch KlasseAlt -> KlasseNeu vor :T + * * (\d+(?:[ ]*-[ ]*\d+)?) * (Stunde x bis)? Stunde y * * (x?) * Entfall ja/nein * - * (?:(?:([\wäöü]+|\+)[ ]*->[ ]*([\wäöü]+|\+))|(?:()([\wäöü]+|\+))) + * (?:(?:([\wäöü]+|\+)[ ]*(?:→|->)[ ]*([\wäöü]+|\+))|(?:()([\wäöü]+|\+))) * Altes Fach -> Neues Fach | Neues Fach * - * (?:(?:(\d+|---)[ ]*->[ ]*(\d+|---))|(?:()(\d+|---))) + * (?:(?:(\d+|---)[ ]*(?:→|->)[ ]*(\d+|---))|(?:()(\d+|---))) * Alter Raum -> neuer Raum | neuer Raum * * ([\wäöü-]+|---|[+.]) * Art-Text * - * (?:(?:([\wäöü]+|\+)[ ]*->[ ]*([\wäöü]+|\+))|(?:()([\wäöü]+|\+))) + * (?:(?:([\wäöü]+|\+)[ ]*(?:→|->)[ ]*([\wäöü]+|\+))|(?:()([\wäöü]+|\+))) * Alter Lehrer -> Neuer Lehrer | Neuer Lehrer * - * ([\wäöü-]*) + * ([\wäöü -]*) * Info-Text */ - var vertretungenRe = /([\wäöü]+)[ ]+(\d+(?:[ ]*-[ ]*\d+)?)[ ]+(x?)[ ]*(?:(?:([\wäöü]+|\+)[ ]*->[ ]*([\wäöü]+|\+))|(?:()([\wäöü]+|\+)))[ ]+(?:(?:(\d+|---)[ ]*->[ ]*(\d+|---))|(?:()(\d+|---)))[ ]+([\wäöü-]+|---|[+.])[ ]+(?:(?:([\wäöü]+|\+)[ ]*->[ ]*([\wäöü]+|\+))|(?:()([\wäöü]+|\+)))[ ]*([\wäöü-]*)/i; + var vertretungenRe = /([\wäöü-]+)[ ]+(\d+(?:[ ]*-[ ]*\d+)?)[ ]+(x?)[ ]*(?:(?:([\wäöü]+|\+)[ ]*(?:→|->)[ ]*([\wäöü]+|\+))|(?:()([\wäöü]+|\+)))[ ]+(?:(?:(\d+|---)[ ]*(?:→|->)[ ]*(\d+|---))|(?:()(\d+|---)))[ ]+([\wäöü-]+|---|[+.])[ ]+(?:(?:([\wäöü]+|\+)[ ]*(?:→|->)[ ]*([\wäöü]+|\+))|(?:()([\wäöü]+|\+)))[ ]*([\wäöü -]*)/i; var res; var vertretungen = []; var nutzerklasse; |
