Skip to content

Commit

Permalink
Merge pull request ecomfe#1 from nighca/debug
Browse files Browse the repository at this point in the history
更新去除文本首位空白行的正则表达式
  • Loading branch information
nighca committed Jun 4, 2015
2 parents af333c5 + d3b5c76 commit 1041dc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/print-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var packageElement = function(info, content){
};

var removeBlankLineAround = function(content){
return content.replace(/(^([\s\t]*\n)+)|((\n[\s\t]*)+$)/g, '');
return content.replace(/(^(\s*\n)+)|((\n\s*)+$)/g, '');
};

var printRawTextElementNode = function(info, node, condition, opt){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "html-code-gen",
"version": "0.3.2",
"version": "0.3.3",
"description": "",
"main": "index.js",
"browserify": "index.js",
Expand Down

0 comments on commit 1041dc8

Please sign in to comment.