mirror of
https://github.com/getbible/getverse.git
synced 2024-11-24 21:07:34 +00:00
Fixed bookname filter/search
This commit is contained in:
parent
c6eb6198b6
commit
8db4e91296
@ -14,7 +14,8 @@ QUERY="${1:-62 3:16-18}"
|
||||
# set the translation (default: kjv)
|
||||
VERSION="${2:-kjv}"
|
||||
# get the name from the query TODO: find better filter
|
||||
BOOKNAME=$(echo ${QUERY%%[0-9]?:*} | xargs echo -n)
|
||||
BOOKNAME=$(echo ${QUERY%%[0-9][0-9]?:*} | xargs echo -n)
|
||||
BOOKNAME=$(echo ${BOOKNAME%%[0-9]?:*} | xargs echo -n)
|
||||
BOOKNAME=$(echo ${BOOKNAME%%[0-9]:*} | xargs echo -n)
|
||||
# check if the name was given by number
|
||||
re='^[0-9]+$'
|
||||
|
@ -14,7 +14,8 @@ QUERY="${1:-62 3:16-18}"
|
||||
# set the translation (default: kjv)
|
||||
VERSION="${2:-kjv}"
|
||||
# get the name from the query TODO: find better filter
|
||||
BOOKNAME=$(echo ${QUERY%%[0-9]?:*} | xargs echo -n)
|
||||
BOOKNAME=$(echo ${QUERY%%[0-9][0-9]?:*} | xargs echo -n)
|
||||
BOOKNAME=$(echo ${BOOKNAME%%[0-9]?:*} | xargs echo -n)
|
||||
BOOKNAME=$(echo ${BOOKNAME%%[0-9]:*} | xargs echo -n)
|
||||
# check if the name was given by number
|
||||
re='^[0-9]+$'
|
||||
|
Loading…
Reference in New Issue
Block a user