summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. 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)
commit539388e9107c258a7f567549bd6ade51640377d0 (patch)
treedf3d56070298eeb978329c85921bc8f432c0f6f2 /lib
parent8099ca78b6005cba966067df05a0165d850c4623 (diff)
Fix picky field-matching BRE.
Spaces are in fact allowed in field values...
Diffstat (limited to 'lib')
-rw-r--r--lib/controlfields2
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}