parsec-hooks 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
@@ -61,7 +61,7 @@ var _default = function _default(_ref) {
|
|
61
61
|
}
|
62
62
|
|
63
63
|
var firstStr = str.substr(0, newbeginLen);
|
64
|
-
var lastStr = str.substr(newendLen);
|
64
|
+
var lastStr = str.substr(-newendLen);
|
65
65
|
var middleStr = '*'.repeat(newendLen - newbeginLen + 1);
|
66
66
|
var tempStr = firstStr + middleStr + lastStr;
|
67
67
|
return tempStr;
|