Skip to content

Commit 8fda923

Browse files
committed
es5 compatible
version bump
1 parent 5fba405 commit 8fda923

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-rsa",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Node.js RSA library",
55
"main": "src/NodeRSA.js",
66
"scripts": {

src/utils.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ module.exports._ = {
9191
* themselves.
9292
*/
9393
module.exports.trimSurroundingText = function (data, opening, closing) {
94-
let trimStartIndex = 0;
95-
let trimEndIndex = data.length;
94+
var trimStartIndex = 0;
95+
var trimEndIndex = data.length;
9696

97-
let openingBoundaryIndex = data.indexOf(opening);
97+
var openingBoundaryIndex = data.indexOf(opening);
9898
if (openingBoundaryIndex >= 0) {
9999
trimStartIndex = openingBoundaryIndex + opening.length;
100100
}
101101

102-
let closingBoundaryIndex = data.indexOf(closing, openingBoundaryIndex);
102+
var closingBoundaryIndex = data.indexOf(closing, openingBoundaryIndex);
103103
if (closingBoundaryIndex >= 0) {
104104
trimEndIndex = closingBoundaryIndex;
105105
}

0 commit comments

Comments
 (0)