}
function custom_generator_tools($datasetdef) {
- if (ereg('^(uniform|loguniform):([^-]*):([^-]*):([0-9]*)$',
+ if (ereg('^(uniform|loguniform):([^:]*):([^:]*):([0-9]*)$',
$datasetdef->options, $regs)) {
for ($i = 0 ; $i<10 ; ++$i) {
$lengthoptions[$i] = get_string(($regs[1] == 'uniform'
}
function generate_dataset_item($options) {
- if (!ereg('^(uniform|loguniform):([^-]*):([^-]*):([0-9]*)$',
+ if (!ereg('^(uniform|loguniform):([^:]*):([^:]*):([0-9]*)$',
$options, $regs)) {
// Unknown options...
return false;