diff --git a/public/docs/_examples/toh-1/e2e-spec.ts b/public/docs/_examples/toh-1/e2e-spec.ts index 15acf6e434..51a935acab 100644 --- a/public/docs/_examples/toh-1/e2e-spec.ts +++ b/public/docs/_examples/toh-1/e2e-spec.ts @@ -19,7 +19,7 @@ class Hero { let _name = await detail.element(by.css('h2')).getText(); return { id: +_id.substr(_id.indexOf(' ') + 1), - name: _name.substr(0, _name.indexOf(' ')) + name: _name.substr(0, _name.lastIndexOf(' ')) }; } } diff --git a/public/docs/_examples/toh-2/e2e-spec.ts b/public/docs/_examples/toh-2/e2e-spec.ts index 256ffbb5d7..617ca38a1f 100644 --- a/public/docs/_examples/toh-2/e2e-spec.ts +++ b/public/docs/_examples/toh-2/e2e-spec.ts @@ -31,7 +31,7 @@ class Hero { let _name = await detail.element(by.css('h2')).getText(); return { id: +_id.substr(_id.indexOf(' ') + 1), - name: _name.substr(0, _name.indexOf(' ')) + name: _name.substr(0, _name.lastIndexOf(' ')) }; } } diff --git a/public/docs/_examples/toh-3/e2e-spec.ts b/public/docs/_examples/toh-3/e2e-spec.ts index 070dd69ebd..0f9c747b90 100644 --- a/public/docs/_examples/toh-3/e2e-spec.ts +++ b/public/docs/_examples/toh-3/e2e-spec.ts @@ -31,7 +31,7 @@ class Hero { let _name = await detail.element(by.css('h2')).getText(); return { id: +_id.substr(_id.indexOf(' ') + 1), - name: _name.substr(0, _name.indexOf(' ')) + name: _name.substr(0, _name.lastIndexOf(' ')) }; } } diff --git a/public/docs/_examples/toh-4/e2e-spec.ts b/public/docs/_examples/toh-4/e2e-spec.ts index 8f7852a3e3..8c109167af 100644 --- a/public/docs/_examples/toh-4/e2e-spec.ts +++ b/public/docs/_examples/toh-4/e2e-spec.ts @@ -31,7 +31,7 @@ class Hero { let _name = await detail.element(by.css('h2')).getText(); return { id: +_id.substr(_id.indexOf(' ') + 1), - name: _name.substr(0, _name.indexOf(' ')) + name: _name.substr(0, _name.lastIndexOf(' ')) }; } }