Skip to content

Commit

Permalink
(fix) add previous selector
Browse files Browse the repository at this point in the history
  • Loading branch information
driiftkiing committed Mar 15, 2024
1 parent 61f8341 commit beaac9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/api/v1/verse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ verse.get(

const versesArray: Array<string> = [];
const citationsArray: Array<string> = [];
const wrapper = $('div.max-w-full.w-full > div > div > div > div:nth-child(1) > a > p');
const citationWrapper = $('div.max-w-full.w-full > div > div > div > div:nth-child(1) > h2');
const wrapper = $('div.max-w-full.w-full div > p, div.max-w-full.w-full > div > div > div > div:nth-child(1) > a > p');
const citationWrapper = $('div.max-w-full.w-full div > h2, div.max-w-full.w-full > div > div > div > div:nth-child(1) > h2');

wrapper.each((i, p) => {
const rawVerse = $(p).eq(0).text();
Expand Down

0 comments on commit beaac9b

Please sign in to comment.