-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ignore whitespace option #66
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ describe('\'diffHtml\'', function () { | |
files = readFiles('3.html', '_3.html'), | ||
|
||
res = [ { | ||
value: '<html> <head> <title>Test</title> </head> <body> <label for="">label for input</label> <input id=""> </body> </html> ', | ||
value: '<html><head><title>Test</title></head><body><label for="">label for input</label><input id=""></body></html>', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Почему тест изменился? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. У Я считаю, что эта опция у |
||
added: undefined, | ||
removed: undefined | ||
} ]; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<!-- comments1 --> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title><!-- comments2 --></title> | ||
</head> | ||
<body> | ||
Text<!-- comments3 --> | ||
</body> | ||
</html> | ||
<!-- comments4 --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
Text Text | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
</head> | ||
<body> | ||
Text | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем
lodash
для таких случаев? Можно жеtree.forEach(function(node) {...})
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно конечно, у меня так и было раньше! это сделал изменения в своем пул реквесте @shuhrat!
/cc @shuhrat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
есть мнение, что лодашовский
each
работает быстрее чем нативныйThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хорошо! только я заглянул в доку лодаша и там пишут о переходе
each
наforEach
, поэтому я и изменил у себя!