Show
Ignore:
Timestamp:
04/28/08 15:32:19 (9 months ago)
Author:
ringmaster
Message:

Added missing regex delimiter. Fixes #30.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/linkoid/linkoid.plugin.php

    r157 r169  
    5656                    $links = $ui->add('text', 'count', 'Number of items to be shown'); 
    5757                    //required 
    58                     $links->add_validator( 'validate_required' )->add_validator( 'validate_regex', '%^[1-9][0-9]*$', 'Number of items shown must be a number; 1 or more.' ); 
     58                    $links->add_validator( 'validate_required' )->add_validator( 'validate_regex', '%^[1-9][0-9]*$%', 'Number of items shown must be a number; 1 or more.' ); 
    5959                    $tag_control = $ui->add('select', 'show', 'Tag that will be shown via linkoid command'); 
    6060                    $tags = DB::get_results( 'SELECT tag_slug, tag_text FROM {tags} ORDER BY tag_text ASC' );