Skip to content

Commit 4f6f99d

Browse files
committed
Rename pars method to parse
1 parent 54d696c commit 4f6f99d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fs.readFile('./iran_cities_in_moi_site.crawl', 'utf8', function read(err, data)
77
throw err;
88
} else {
99
//convert html string to javascript object
10-
var data = parser.pars(data);
10+
var data = parser.parse(data);
1111

1212
var json = JSON.stringify(data, null, 2);
1313
var xml = JSON.stringify({'city':data});

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var schema = [
1414
];
1515

1616
module.exports = {
17-
pars: function (data) {
17+
parse: function (data) {
1818
//convert html string to array
1919
var tables = data
2020
//remove "<tbody>" html tag and new lines

0 commit comments

Comments
 (0)