Skip to content

Commit

Permalink
Fixed repition of word in cover message, bug #16
Browse files Browse the repository at this point in the history
  • Loading branch information
AK5123 committed Jun 20, 2020
1 parent 878ef43 commit 913a558
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</a>
<img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" />
<br>
<a href="https://www.producthunt.com/posts/stegcloak?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-stegcloak" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=206296&theme=dark" alt="Stegcloak - Hide secrets in plain text using passwords - Web exploit | Product Hunt Embed" style="width: 250px; height: 54px;" width="125px" height="27px" /></a>
</h1>
<h4 align="center">The Cloak of Invisibility for your texts</h4>

Expand Down
2 changes: 1 addition & 1 deletion components/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const embed = (cover, secret) => {
const arr = cover.split(" ");
const targetIndex = Math.floor(Math.random() * Math.floor(arr.length/2));
return arr.slice(0, targetIndex+1)
.concat([secret + arr[1]])
.concat([secret + arr[targetIndex+1]])
.concat(arr.slice(targetIndex+2, arr.length))
.join(" ");
};
Expand Down
2 changes: 1 addition & 1 deletion dist/stegcloak.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ramdajs",
"steganography-algorithms"
],
"version": "1.1.0",
"version": "1.1.1",
"main": "stegcloak.js",
"engines": {
"node": ">=8.0.0"
Expand Down

0 comments on commit 913a558

Please sign in to comment.