Changeset 6583
- Timestamp:
- Mar 14, 2006, 12:40:15 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/DataStore/lib/DataStore/Record.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/lib/DataStore/Record.pm
r6502 r6583 1 1 # Copyright (C) 2006 Joshua Hoblitt 2 2 # 3 # $Id: Record.pm,v 1. 3 2006-02-28 03:44:32jhoblitt Exp $3 # $Id: Record.pm,v 1.4 2006-03-14 22:40:15 jhoblitt Exp $ 4 4 5 5 package DataStore::Record; … … 14 14 15 15 use Carp qw( carp croak ); 16 use Data::Validate::URI qw( is_ http_uri );16 use Data::Validate::URI qw( is_uri ); 17 17 use Params::Validate qw( validate_with validate SCALAR ); 18 18 … … 60 60 type => SCALAR, 61 61 callbacks => { 62 'is valid http uri' => sub { is_http_uri($_[0]) }, 62 'is valid http uri' => 63 sub { is_uri($_[0]) and $_[0] =~ /^http:/ }, 63 64 }, 64 65 default => 'http://example.org/',
Note:
See TracChangeset
for help on using the changeset viewer.
