IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15024


Ignore:
Timestamp:
Sep 25, 2007, 2:09:52 PM (19 years ago)
Author:
jhoblitt
Message:

doc fix
minor code cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/lib/DataStore/FileSet/Parser.pm

    r15022 r15024  
    11# Copyright (C) 2006  Joshua Hoblitt
    22#
    3 # $Id: Parser.pm,v 1.16 2007-09-25 23:52:46 jhoblitt Exp $
     3# $Id: Parser.pm,v 1.17 2007-09-26 00:09:52 jhoblitt Exp $
    44
    55package DataStore::FileSet::Parser;
     
    3232
    3333    my $parser = DataStore::FileSet::Parser->new(
    34         base_uri => 'http://example.org/',
     34        base_uri => 'http://example.org/index.txt',
    3535    );
    3636
     
    6161
    6262    my $parser = DataStore::FileSet::Parser->new(
    63         base_uri => 'http://example.org/',
     63        base_uri => 'http://example.org/index.txt',
    6464    );
    6565
     
    8989                    'is valid http uri' =>
    9090                        sub { is_uri($_[0]) and $_[0] =~ /^http:/ },
    91                     'uri ends with /index.txt' => sub { $_[0] =~ m|/index.txt$| },
     91                    'uri ends with /index.txt' =>
     92                        sub { $_[0] =~ m|/index.txt$| },
    9293                },
    9394                default =>  'http://example.org/index.txt',
     
    99100
    100101    $p{base_uri} =~ qr|(.*?/)index.txt|;
    101 
    102102    $self->{base_uri} = $1;
    103103
Note: See TracChangeset for help on using the changeset viewer.