diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-06-08 17:59:59 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-15 20:02:39 +0200 |
| commit | 990768880a69667285a719b8f18b35c82370f317 (patch) | |
| tree | f0709ba8a16e406b6117f2dd33a12e4ba257435b /js/index.js | |
| parent | ca468dd61f3589e7fffe606fb60a9088c5630655 (diff) | |
| download | wvs-vplan-990768880a69667285a719b8f18b35c82370f317.tar.gz wvs-vplan-990768880a69667285a719b8f18b35c82370f317.zip | |
fixe Nichterkennung von Benutzernamen
Diffstat (limited to 'js/index.js')
| -rw-r--r-- | js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/index.js b/js/index.js index b7b0458..a823993 100644 --- a/js/index.js +++ b/js/index.js @@ -357,7 +357,7 @@ function parseVertretungen(str, username){ var vertretungen = []; var nutzerklasse; - if(username.search(/\w+_.*/)){ + if(/\w+_.*/.test(username)){ nutzerklasse = username.match(/(\w+)_.*/)[1].toUpperCase(); }else{ return []; |
