diff --git a/node_modules/c9/hostname.js b/node_modules/c9/hostname.js index 0afb87c1..a12afc58 100644 --- a/node_modules/c9/hostname.js +++ b/node_modules/c9/hostname.js @@ -2,8 +2,8 @@ var fs = require("fs"); exports.parse = function(hostname) { - var m1 = hostname.match(/^([0-9a-z-]+?)-([a-z]+)-([a-z]+)-([0-9]+)-([a-z0-9]+)$/); - var m2 = hostname.match(/^([0-9a-z-]+?)-([a-z]+)-([a-z]+)-([a-z0-9]+)-([a-z0-9]{4})$/); + var m1 = hostname.match(/^([0-9a-z-]+?)-([0-9a-z]+)-([a-z]+)-([0-9]+)-([a-z0-9]+)$/); + var m2 = hostname.match(/^([0-9a-z-]+?)-([0-9a-z]+)-([a-z]+)-([a-z0-9]+)-([a-z0-9]{4})$/); if (m1) { return { diff --git a/node_modules/c9/hostname_test.js b/node_modules/c9/hostname_test.js index face783e..1917ff93 100644 --- a/node_modules/c9/hostname_test.js +++ b/node_modules/c9/hostname_test.js @@ -23,5 +23,6 @@ describe(__filename, function() { assertServerName(hostname.parse("newclient-gce-eu-prod-d4fg"), "newclient", "gce", "eu", "d4fg", "prod"); assertServerName(hostname.parse("ide-old-gce-usw-02-prod"), "ide-old", "gce", "usw", "02", "prod"); assertServerName(hostname.parse("docker-premium-eu-115-prod"), "docker", "premium", "eu", "115", "prod"); + assertServerName(hostname.parse("docker-c9admin-usw-389-prod"), "docker", "c9admin", "usw", "389", "prod"); }); });