Commit a2b7a2b
committed
Fix BibleGateway verse extraction to get last number in class
BibleGateway HTML uses classes like 'Gen-1-1', 'Gen-1-2' where the last
number is the verse number. Previous regex '\b(\d+)\b' matched the FIRST
number (the chapter), causing all verses to be numbered as 1.
Fixed with '-(\d+)$' to extract the verse number correctly.
Fixes 'only getting first verse' issue in Metanoia Bible app.1 parent cbeeacf commit a2b7a2b
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | | - | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments