Comparing version 0.5.4 to 0.5.5
@@ -59,3 +59,8 @@ const debug = require('debug') ('sipware:ua') | ||
if(ret) { | ||
return ret.split(';'); | ||
var idx = ret.indexOf(';'); | ||
if(idx > 0) { | ||
return [ret.slice(0, idx), ret.slice(idx + 1)] | ||
} | ||
return [ret]; | ||
} | ||
@@ -68,4 +73,11 @@ return []; | ||
if(via[0]) return via[0].split(';') | ||
if(via[0]) { | ||
var idx = via[0].indexOf(';'); | ||
if(idx > 0) { | ||
return [via[0].slice(0, idx), via[0].slice(idx + 1)] | ||
} | ||
return [via[0]]; | ||
} | ||
return []; | ||
@@ -72,0 +84,0 @@ } |
@@ -67,3 +67,3 @@ { | ||
"optionalDependencies": {}, | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"directories": { | ||
@@ -70,0 +70,0 @@ "lib": "lib" |
125644
3062