File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
webapp/src/client/app/shared/services/utils Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class StringService {
17
17
this . utils = parent ;
18
18
}
19
19
20
- //DOMAIN\username or username@DOMAIN
20
+ //DOMAIN\username
21
21
extractDomain ( fullUsername : string ) : ExtractedUsernameDomain {
22
22
const extractionData : ExtractedUsernameDomain = {
23
23
username : fullUsername ,
@@ -27,9 +27,6 @@ export class StringService {
27
27
if ( fullUsername . includes ( '\\' ) ) {
28
28
extractionData . domain = fullUsername . split ( '\\' ) [ 0 ] ;
29
29
extractionData . username = fullUsername . split ( '\\' ) [ 1 ] ;
30
- } else if ( fullUsername . includes ( '@' ) ) {
31
- extractionData . domain = fullUsername . split ( '@' ) [ 1 ] ;
32
- extractionData . username = fullUsername . split ( '@' ) [ 0 ] ;
33
30
}
34
31
return extractionData ;
35
32
}
You can’t perform that action at this time.
0 commit comments