Skip to content
Snippets Groups Projects
Commit 70423f5f authored by rswindell's avatar rswindell
Browse files

Fix the extra blank-line in the array returned by base64_encode() method.

parent 6cf30562
No related branches found
No related tags found
No related merge requests found
......@@ -756,7 +756,7 @@ Graphic.prototype.base64_encode = function(max_line_len)
{
if(!max_line_len)
max_line_len = 76;
return base64_encode(this.BIN).match(new RegExp('([\x00-\xff]{0,' + max_line_len + '})', 'g'));
return base64_encode(this.BIN).match(new RegExp('([\x00-\xff]{1,' + max_line_len + '})', 'g'));
};
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment