bibleapi-rest icon indicating copy to clipboard operation
bibleapi-rest copied to clipboard

Fix verse range request when verses are in mixed order

Open rkazakov opened this issue 8 years ago • 0 comments

Fix verse range request when verses are in mixed order. This is a really strange bug!

Run this request once: http://localhost:4000/api/v1/Matt3:5-2 Response: verse 2

Run request again: http://localhost:4000/api/v1/Matt3:5-2 Response: verse 5

I think the correct response in this case should be verse 5. So the logic is: When the verse range is incorrect (first verse is bigger then the second) ignore the second and return just the first verse. So in the case about should be verse 5 only.

rkazakov avatar Apr 16 '16 12:04 rkazakov