Skip to content

Commit

Permalink
Fix #15 : Add a backslash in front of pipe for title
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyounet committed Feb 8, 2016
1 parent 3878bed commit a205515
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bm
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ saveUrl() {
if [ ${_BM_GET_PAGE_TITLE} = true -a -z "${__T:=}" ]; then
__T="$( curl -ks "${__url}" 2>&1 | sed '/<title>/I!d;/<\/title>/I!d;s;^[[:space:]]*<title>\([^<]*\)<.*;\1;i' )"
fi
[[ ! -z "${__T:=}" ]] && __T="${__T//\|/\\|}"
backupBm
[[ -z "${__T:=}" ]] && __T="$(slug <<< "${__url}")" # If no title => slug the url
[[ -z "${__t:=}" ]] && __t='default' # Default tag is default
Expand Down

0 comments on commit a205515

Please sign in to comment.