This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Hero {
1919 let _name = await detail . element ( by . css ( 'h2' ) ) . getText ( ) ;
2020 return {
2121 id : + _id . substr ( _id . indexOf ( ' ' ) + 1 ) ,
22- name : _name . substr ( 0 , _name . indexOf ( ' ' ) )
22+ name : _name . substr ( 0 , _name . lastIndexOf ( ' ' ) )
2323 } ;
2424 }
2525}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Hero {
3131 let _name = await detail . element ( by . css ( 'h2' ) ) . getText ( ) ;
3232 return {
3333 id : + _id . substr ( _id . indexOf ( ' ' ) + 1 ) ,
34- name : _name . substr ( 0 , _name . indexOf ( ' ' ) )
34+ name : _name . substr ( 0 , _name . lastIndexOf ( ' ' ) )
3535 } ;
3636 }
3737}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Hero {
3131 let _name = await detail . element ( by . css ( 'h2' ) ) . getText ( ) ;
3232 return {
3333 id : + _id . substr ( _id . indexOf ( ' ' ) + 1 ) ,
34- name : _name . substr ( 0 , _name . indexOf ( ' ' ) )
34+ name : _name . substr ( 0 , _name . lastIndexOf ( ' ' ) )
3535 } ;
3636 }
3737}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class Hero {
3131 let _name = await detail . element ( by . css ( 'h2' ) ) . getText ( ) ;
3232 return {
3333 id : + _id . substr ( _id . indexOf ( ' ' ) + 1 ) ,
34- name : _name . substr ( 0 , _name . indexOf ( ' ' ) )
34+ name : _name . substr ( 0 , _name . lastIndexOf ( ' ' ) )
3535 } ;
3636 }
3737}
You can’t perform that action at this time.
0 commit comments