workaround for #457 (#465)

i'm not in anyway versed in javascript, but this hack fixes #457 for me.
This commit is contained in:
nick n
2018-12-28 17:00:13 +01:00
committed by Oliver Gorwits
parent b1ca1b968d
commit 08589ebf96

View File

@@ -30,6 +30,8 @@ function portSort (a, b) {
// octal regex
ore = /^0/,
// convert all to strings and trim()
if (typeof a == 'null') { a = ''; }
if (typeof b == 'null') { b = ''; }
x = a.toString().replace(sre, '') || '',
y = b.toString().replace(sre, '') || '';