Skip to content

Commit

Permalink
File extensions can consist of less than three characters (.js, .rb, …
Browse files Browse the repository at this point in the history
…etc)...
  • Loading branch information
kolber committed Dec 2, 2009
1 parent 83168d4 commit e468673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/asset-types/asset.inc.php
Expand Up @@ -25,7 +25,7 @@ function set_default_data($file_path) {

# set @url & @name variables
$this->data['@url'] = $this->link_path;
$this->data['@name'] = ucfirst(preg_replace(array('/[-_]/', '/\.[\w\d]{3,4}$/', '/\d+?\./'), array(' ', '', ''), $this->file_name));
$this->data['@name'] = ucfirst(preg_replace(array('/[-_]/', '/\.[\w\d]+?$/', '/\d+?\./'), array(' ', '', ''), $this->file_name));
}

}
Expand Down

0 comments on commit e468673

Please sign in to comment.