Skip to content

Commit

Permalink
Rename pars method to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
arastu committed Aug 22, 2015
1 parent 54d696c commit 4f6f99d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fs.readFile('./iran_cities_in_moi_site.crawl', 'utf8', function read(err, data)
throw err;
} else {
//convert html string to javascript object
var data = parser.pars(data);
var data = parser.parse(data);

var json = JSON.stringify(data, null, 2);
var xml = JSON.stringify({'city':data});
Expand Down
2 changes: 1 addition & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var schema = [
];

module.exports = {
pars: function (data) {
parse: function (data) {
//convert html string to array
var tables = data
//remove "<tbody>" html tag and new lines
Expand Down

0 comments on commit 4f6f99d

Please sign in to comment.