projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4852d7c
)
trap null subfield codes
author
Shawn Boyette
<sboyette@esilibrary.com>
Wed, 8 Oct 2008 17:49:35 +0000 (17:49 +0000)
committer
Shawn Boyette
<sboyette@esilibrary.com>
Wed, 8 Oct 2008 17:49:35 +0000 (17:49 +0000)
marc-cleanup
patch
|
blob
|
history
diff --git
a/marc-cleanup
b/marc-cleanup
index
76d77be
..
00b1430
100755
(executable)
--- a/
marc-cleanup
+++ b/
marc-cleanup
@@
-129,7
+129,7
@@
while (my $line = getline()) {
}
# subfields can't be non-alphanumeric
- if ($line =~ /<subfield code="(.+?)"/) {
+ if ($line =~ /<subfield code="(.*?)"/) {
my $match = $1;
if ($match =~ /\P{IsAlnum}/) {
edit("Junk in subfield code", $line);