Project

General

Profile

« Previous | Next » 

Revision 11950

bugfix: bin/boldify: fixed extended regular expression syntax, which doesn't support a \] inside [] (you instead have to put the ] right after the opening [^ )

View differences:

boldify
3 3
# usage: self <in >out
4 4
. "$(dirname "${BASH_SOURCE[0]}")"/../lib/sh/util.sh
5 5

  
6
clog++ sed -e 's/\[\[[^\]]*\]\]/*&*/g' -e 's/(")([^"]*)(":)/\1*\2*\3/g'
6
clog++ sed -e 's/\[\[[^]]*\]\]/*&*/g' -e 's/(")([^"]*)(":)/\1*\2*\3/g'

Also available in: Unified diff