Skip to content

Commit

Permalink
1.1.0 Do not trim the result.
Browse files Browse the repository at this point in the history
  • Loading branch information
IonicaBizau committed Dec 7, 2014
1 parent acfb705 commit d83a100
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ Converts the provided image in ASCII art.
message.

# Changelog
## 1.1.0
- Do not `trim` the result string.

## 1.0.0
- First stable release.
- Refactored code.
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ var ImageToAscii = module.exports = function (options, callback) {
converted += "\n";
}

converted = converted.trim().split("\n").map(function (c) {
converted = converted.split("\n").map(function (c) {
return c.replace(/\u001b\[0m/g, "") + "\u001b[0m";
}).join("\n");

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "image-to-ascii",
"version": "1.0.0",
"version": "1.1.0",
"description": "A Node.JS module that converts images to ASCII art.",
"main": "lib/index.js",
"directories": {
Expand All @@ -21,7 +21,7 @@
],
"author": "Ionică Bizău <bizauionica@gmail.com>",
"contributors": [
"Eric Baer <me@ericbaer.com> https://twitter.com/asoftwaredev"
"Eric Baer <me@ericbaer.com> https://twitter.com/asoftwaredev"
],
"license": "MIT",
"bugs": {
Expand All @@ -35,4 +35,4 @@
"request": "2.49.0"
},
"devDependencies": {}
}
}

0 comments on commit d83a100

Please sign in to comment.