Skip to content

Commit

Permalink
fix(crawler/ks): fix date matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkrist committed Sep 27, 2021
1 parent 2016ad9 commit 0698141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/crawler/lib/ks.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = () =>
.then(
dom => {
const dateMatch = [...dom.window.document.querySelectorAll('h3')]
.map(el => el.nextElementSibling)
.find(el => /^Stand/.test(el.textContent))
.textContent.match(/Stand:?\s\w+,?\s(\d*)\.\s([\wä]+)\s(\d{4})?/)

Expand Down

0 comments on commit 0698141

Please sign in to comment.