- Fixed a bug that caused a commond dateformat (YDM-HN) to be misinterpreted
  as a UUID.  Solution is to increase minimum partial UUID length from 9 to
  14.
This commit is contained in:
Paul Beckingham
2012-07-17 18:30:58 -04:00
parent 561102b70b
commit c20c025c8e
4 changed files with 22 additions and 25 deletions

View File

@@ -137,23 +137,23 @@ like ($output, qr/one/, "Found with $short");
($short) = $uuid =~ /^(.{13})/;
$output = qx{../src/task rc:bug.rc $short list 2>&1};
like ($output, qr/one/, "Found with $short");
unlike ($output, qr/one/, "Not found with $short");
($short) = $uuid =~ /^(.{12})/;
$output = qx{../src/task rc:bug.rc $short list 2>&1};
like ($output, qr/one/, "Found with $short");
unlike ($output, qr/one/, "Not found with $short");
($short) = $uuid =~ /^(.{11})/;
$output = qx{../src/task rc:bug.rc $short list 2>&1};
like ($output, qr/one/, "Found with $short");
unlike ($output, qr/one/, "Not found with $short");
($short) = $uuid =~ /^(.{10})/;
$output = qx{../src/task rc:bug.rc $short list 2>&1};
like ($output, qr/one/, "Found with $short");
unlike ($output, qr/one/, "Not found with $short");
($short) = $uuid =~ /^(.{9})/;
$output = qx{../src/task rc:bug.rc $short list 2>&1};
like ($output, qr/one/, "Found with $short");
unlike ($output, qr/one/, "Not found with $short");
($short) = $uuid =~ /^(.{8})/;
$output = qx{../src/task rc:bug.rc $short list 2>&1};