|
|
|
@ -183,19 +183,19 @@ export function atIndex (index, mapping) { |
|
|
|
|
continue |
|
|
|
|
} |
|
|
|
|
current = current.split(':') |
|
|
|
|
if (ret.start === undefined && current[0] && current[0] !== '-1' && current[0].length) { |
|
|
|
|
ret.start = parseInt(current[0]) |
|
|
|
|
if (ret['start'] === undefined && current[0] && current[0] !== '-1' && current[0].length) { |
|
|
|
|
ret['start'] = parseInt(current[0]) |
|
|
|
|
} |
|
|
|
|
if (ret.length === undefined && current[1] && current[1] !== '-1' && current[1].length) { |
|
|
|
|
ret.length = parseInt(current[1]) |
|
|
|
|
if (ret['length'] === undefined && current[1] && current[1] !== '-1' && current[1].length) { |
|
|
|
|
ret['length'] = parseInt(current[1]) |
|
|
|
|
} |
|
|
|
|
if (ret.file === undefined && current[2] && current[2].length) { |
|
|
|
|
ret.file = parseInt(current[2]) |
|
|
|
|
if (ret['file'] === undefined && current[2] && current[2].length) { |
|
|
|
|
ret['file'] = parseInt(current[2]) |
|
|
|
|
} |
|
|
|
|
if (ret.jump === undefined && current[3] && current[3].length) { |
|
|
|
|
ret.jump = current[3] |
|
|
|
|
if (ret['jump'] === undefined && current[3] && current[3].length) { |
|
|
|
|
ret['jump'] = current[3] |
|
|
|
|
} |
|
|
|
|
if (ret.start !== undefined && ret.length !== undefined && ret.file !== undefined && ret.jump !== undefined) { |
|
|
|
|
if (ret['start'] !== undefined && ret['length'] !== undefined && ret['file'] !== undefined && ret['jump'] !== undefined) { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|