summaryrefslogtreecommitdiff
path: root/js/src/Ice/EndpointFactoryManager.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/EndpointFactoryManager.js')
-rw-r--r--js/src/Ice/EndpointFactoryManager.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/Ice/EndpointFactoryManager.js b/js/src/Ice/EndpointFactoryManager.js
index d10308bb459..288a4d886a3 100644
--- a/js/src/Ice/EndpointFactoryManager.js
+++ b/js/src/Ice/EndpointFactoryManager.js
@@ -11,6 +11,7 @@ var Ice = require("../Ice/ModuleRegistry").Ice;
Ice.__M.require(module,
[
"../Ice/Class",
+ "../Ice/StringUtil",
"../Ice/BasicStream",
"../Ice/Debug",
"../Ice/OpaqueEndpointI",
@@ -26,6 +27,7 @@ var BasicStream = Ice.BasicStream;
var EndpointParseException = Ice.EndpointParseException;
var OpaqueEndpointI = Ice.OpaqueEndpointI;
var Protocol = Ice.Protocol;
+var StringUtil = Ice.StringUtil;
var EndpointFactoryManager = Ice.Class({
__init__: function(instance)
@@ -61,7 +63,7 @@ var EndpointFactoryManager = Ice.Class({
throw new EndpointParseException("value has no non-whitespace characters");
}
- var arr = s.split(/[ \t\n\r]+/);
+ var arr = StringUtil.splitString(s, " \t\n\r");
if(arr.length === 0)
{
throw new EndpointParseException("value has no non-whitespace characters");