chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dd8d65
)
Commods (upload): Tolerate tabs (which are nowadays not printing it seems?!)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 3 Apr 2016 21:37:56 +0000
(22:37 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 3 Apr 2016 21:37:56 +0000
(22:37 +0100)
yarrg/Commods.pm
patch
|
blob
|
history
diff --git
a/yarrg/Commods.pm
b/yarrg/Commods.pm
index 48caf79e9ba3f5ca1f0d2f158c4d8f36d18f242d..5d0ffe29fd46b8dd7b06802655b84d132ec9f100 100644
(file)
--- a/
yarrg/Commods.pm
+++ b/
yarrg/Commods.pm
@@
-422,7
+422,7
@@
sub check_tsv_line ($$) {
chomp($l) or &$bad_data('missing end-of-line');
- $l
!~ m/\P{IsPrint}
/ or &$bad_data('nonprinting char(s) '.sprintf "%#x", ord $&);
+ $l
=~ m/[\t [:graph:]]
/ or &$bad_data('nonprinting char(s) '.sprintf "%#x", ord $&);
my @v= split /\t/, $l, -1;
@v==6 or &$bad_data('wrong number of fields');
$v[1] =~ s/^\s+//; $v[1] =~ s/\s+$//; # ooo don't check :-(