Comparing version 1.4.0 to 1.4.1
@@ -295,9 +295,8 @@ /** | ||
if (this.truncateAtWordEnd === true) { | ||
var lastSpaceIndexInResult = result.lastIndexOf(' '); | ||
var lastSpaceIndexInResult = result.lastIndexOf(' '); | ||
// Only truncate the string further if the remainder isn't a whole word | ||
// which we can tell by checking the *next* character in the original string | ||
if(lastSpaceIndexInResult != -1 && string.charAt(result.length + 1) != ' '){ | ||
result=result.substr(0,lastSpaceIndexInResult); | ||
} | ||
// Only truncate the string further if the remainder isn't a whole word | ||
// which we can tell by checking the *next* character in the original string | ||
if(lastSpaceIndexInResult != -1 && string.charAt(result.length + 1) != ' '){ | ||
result=result.substr(0,lastSpaceIndexInResult); | ||
} | ||
@@ -304,0 +303,0 @@ } |
{ | ||
"name": "apn", | ||
"description": "An interface to the Apple Push Notification service for Node.js", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": "Andrew Naylor <argon@mkbot.net>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
90059
1372