telnet-client
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -155,2 +155,3 @@ // Node.js Telnet client | ||
var promptIndex = stringData.search(telnetObj.shellPrompt) | ||
if (promptIndex !== -1) { | ||
@@ -251,3 +252,5 @@ telnetObj.shellPrompt = stringData.substring(promptIndex) | ||
try { | ||
return new RegExp(str) | ||
return new RegExp( | ||
str.toString() | ||
.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')) | ||
} | ||
@@ -254,0 +257,0 @@ catch(error) { |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"main": "./lib/telnet-client.js", | ||
@@ -11,0 +11,0 @@ "engine": "node >= 0.10.29", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20786
11
387