Put extra chars length on a constant for readability

This commit is contained in:
Alfredo Sumaran 2017-05-31 16:22:12 -05:00
parent 720f09f341
commit 912d1317d5
1 changed files with 2 additions and 1 deletions

View File

@ -72,8 +72,9 @@ export default {
const bfn = this.baseGroup.fullName; const bfn = this.baseGroup.fullName;
const length = bfn.length; const length = bfn.length;
const start = gfn.indexOf(bfn); const start = gfn.indexOf(bfn);
const extraPrefixChars = 3;
fullPath = gfn.substr(start + length + 3); fullPath = gfn.substr(start + length + extraPrefixChars);
} else { } else {
fullPath = this.group.fullName; fullPath = this.group.fullName;
} }