Skip to content

Commit 4cb2a65

Browse files
committed
Merge pull request #55 from bem/issue53
correct some grammatical mistakes
2 parents cc1cb08 + 8c1f1f5 commit 4cb2a65

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Options:
140140
-h, --help : Help
141141
-v, --version : Shows the version number
142142
--config=CONFIG : Path to configuration JSON-file
143-
--chars-around-diff=CHARSAROUNDDIFF : The number of characters around diff
143+
--chars-around-diff=CHARSAROUNDDIFF : The number of characters around the diff
144144

145145
Arguments:
146146
PATH1 : Path to the 1-st html-file (required)

lib/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = require('coa').Cmd()
2929
.end()
3030
.opt()
3131
.name('charsAroundDiff')
32-
.title('Number of characters around diff')
32+
.title('The number of characters around the diff')
3333
.long('chars-around-diff')
3434
.val(function(val) {
3535
return parseInt(val);

lib/diff-logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function getDiffText(diff, options) {
1313
};
1414

1515
if (options.showCharacters) {
16-
console.log('Option "showCharacters" is deprecated, please use "charsAroundDiff"');
16+
console.log('Option \'showCharacters\' is deprecated, please, use \'charsAroundDiff\'');
1717
options.charsAroundDiff = options.showCharacters;
1818
}
1919

lib/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var utils = require('./utils'),
66
_ = require('lodash');
77

88
/**
9-
* Converts HTML document to AST Tree
9+
* Converts the HTML document to the AST Tree
1010
* @param {String} HTMLDoc
1111
* @param {Object} options
1212
* @returns {AST}
@@ -26,7 +26,7 @@ function htmlToAST(HTMLDoc, options) {
2626
}
2727

2828
/**
29-
* Recursively sorts the arttibutes value of the AST leafs
29+
* Recursively sorts arttibutes' values of the AST leafs
3030
* @param {AST} tree
3131
* @param {Object} options
3232
* @returns {AST}
@@ -89,7 +89,7 @@ var Diff = diff.Diff;
8989
HtmlDiff.prototype = Diff.prototype;
9090

9191
/**
92-
* Tokenizes a given string
92+
* Tokenizes the given string
9393
* @param {String} value
9494
* @returns {Array}
9595
*/
@@ -139,7 +139,7 @@ var HtmlDiffer = function(options) {
139139
*/
140140
HtmlDiffer.prototype.diffHtml = function(html1, html2, options) {
141141
if (options) {
142-
console.warn('WARNING! The third param of "diffHtml" method is deprecated!');
142+
console.warn('WARNING! The third param of \'diffHtml\' method is deprecated!');
143143
}
144144

145145
options = _.defaults(this.options, options);
@@ -158,7 +158,7 @@ HtmlDiffer.prototype.diffHtml = function(html1, html2, options) {
158158
*/
159159
HtmlDiffer.prototype.isEqual = function(html1, html2, options) {
160160
if (options) {
161-
console.warn('WARNING! The third param of "isEqual" method is deprecated!');
161+
console.warn('WARNING! The third param of \'isEqual\' method is deprecated!');
162162
}
163163

164164
options = _.defaults(this.options, options);

lib/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var _ = require('lodash');
22

33
/**
4-
* Sorts recursively given object by key
4+
* Recursively sorts the given object by key
55
* @param {Object} obj
66
* @returns {Object}
77
*/
@@ -23,7 +23,7 @@ exports.sortObj = function sortObj(obj) {
2323
};
2424

2525
/**
26-
* Parses a json string given in HTML attribute
26+
* Parses the JSON given in HTML attribute
2727
* @param {String} val
2828
* @param {Boolean} [isClick]
2929
* @returns {Object}

0 commit comments

Comments
 (0)