diff options
author | P. J. McDermott <pjm@nac.net> | 2012-01-21 12:55:50 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-01-21 12:55:50 (EST) |
commit | 539388e9107c258a7f567549bd6ade51640377d0 (patch) | |
tree | df3d56070298eeb978329c85921bc8f432c0f6f2 /lib/controlfields | |
parent | 8099ca78b6005cba966067df05a0165d850c4623 (diff) |
Fix picky field-matching BRE.
Spaces are in fact allowed in field values...
Diffstat (limited to 'lib/controlfields')
-rw-r--r-- | lib/controlfields | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/controlfields b/lib/controlfields index 8222a92..aaaf668 100644 --- a/lib/controlfields +++ b/lib/controlfields @@ -90,7 +90,7 @@ oh_get_field() while read -r _line; do if [ -z ${_value} ]; then _value=$(echo "${_line}" | sed -n \ - "s/^${_field}:[[:space:]]*\([^[:space:]]*\)[[:space:]]*$/\\1/p") + "s/^${_field}:[[:space:]]*\(.*\)[[:space:]]*$/\\1/p") else if echo "${_line}" | grep '^ ' > /dev/null; then _value="${_value} |