Debug
This commit is contained in:
parent
e0634aeeab
commit
ba4063ad40
1 changed files with 5 additions and 5 deletions
|
@ -140,11 +140,11 @@ const getStationName = (start, callback) => {
|
||||||
callback(err);
|
callback(err);
|
||||||
} else {
|
} else {
|
||||||
const html = htmlparser(body);
|
const html = htmlparser(body);
|
||||||
const name = html
|
const name = html?
|
||||||
.querySelector("strong")
|
.querySelector("strong")?
|
||||||
.toString()
|
.toString()?
|
||||||
.replace(/[<>/]/g, "")
|
.replace(/[<>/]/g, "")?
|
||||||
.replace(/strong/g, "");
|
.replace(/strong/g, "") || null;
|
||||||
|
|
||||||
if (name) {
|
if (name) {
|
||||||
item.name = name;
|
item.name = name;
|
||||||
|
|
Loading…
Reference in a new issue