Skip to content

Commit

Permalink
fix(hjenglishcore): fix phrases parser
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytonyjan committed Jul 13, 2020
1 parent 5193614 commit 27dc1d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dictionaries/hjenglishCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export default async (fetchPromise) => {
).result,
phrases: Array.from(i.querySelectorAll(".phrase-items > li")).map(
(i) => ({
from: i.querySelector("span:first-child")?.textContent?.trim(),
to: i.querySelector("span.phrase-def")?.textContent?.trim(),
from: i.querySelector("*:first-child")?.textContent?.trim(),
to: i.querySelector(".phrase-def")?.textContent?.trim(),
})
),
inflections: Array.from(
Expand Down

0 comments on commit 27dc1d0

Please sign in to comment.