Skip to content

Commit

Permalink
mpsites import: interpret full email address as username (Issue #16)
Browse files Browse the repository at this point in the history
search backwards for '@' while guessing a good match string
  • Loading branch information
ttyridal committed Sep 4, 2015
1 parent 97ecb2e commit a192f2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/data/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ $(document).on('drop', function(e){
var x = read_mpsites(x.target.result);
$.each(x, function(){
var y = this.sitename.split("@");
if (y.length>1) this.sitesearch=y[1];
else this.sitesearch=this.sitename;
if (y.length>1)
this.sitesearch = y[y.length-1];
else
this.sitesearch = this.sitename;

stored_sites_table_append(this.sitesearch,this.sitename,this.passtype,this.loginname,this.passcnt,this.passalgo);

Expand Down

0 comments on commit a192f2e

Please sign in to comment.