diff --git a/doc/generator/parseFile.js b/doc/generator/parseFile.js
index <HASH>..<HASH> 100644
--- a/doc/generator/parseFile.js
+++ b/doc/generator/parseFile.js
@@ -399,10 +399,10 @@ oo.initClass(_Parser);
 var _parseTagTypes = dox.parseTagTypes;
 dox.parseTagTypes = function(str, tag) {
   if (/\{\w+(\/\w+)+([.#]\w+)*\}/.exec(str)) {
-    str = str.replace('/', '_SEP_');
+    str = str.replace(/\//g, '_SEP_');
     var types = _parseTagTypes(str, tag);
     for (var i = 0; i < types.length; i++) {
-      types[i] = types[i].replace('_SEP_', '/');
+      types[i] = types[i].replace(/_SEP_/g, '/');
     }
   } else {
     return _parseTagTypes(str, tag);
Fix in jsdoc type parser workaround.