projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
90c43c9
)
better regexp for grabbing field names
author
Jason Etheridge
<jason@esilibrary.com>
Mon, 27 Nov 2017 22:35:57 +0000 (17:35 -0500)
committer
Jason Etheridge
<jason@esilibrary.com>
Mon, 27 Nov 2017 22:35:57 +0000 (17:35 -0500)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
unicorn/unicorn_to_tsv.pl
patch
|
blob
|
history
diff --git
a/unicorn/unicorn_to_tsv.pl
b/unicorn/unicorn_to_tsv.pl
index
1fad7d4
..
c50c32c
100755
(executable)
--- a/
unicorn/unicorn_to_tsv.pl
+++ b/
unicorn/unicorn_to_tsv.pl
@@
-69,7
+69,7
@@
while (<>) {
# Looks like we've got some actual data! Let's store it.
# FIXME: For large batches of data, we may run out of memory and should store this on disk.
- if ( /^\.(.*?).\s+(\|a)?(.*)$/ ) {
+ if ( /^\.(\S+?)\.\s+(\|a)?(.*)$/ ) {
# Build the name of this field (taking note of whether we're in a named section of data)
$field = '';