Skip to content

Commit

Permalink
walk tree fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Yakamercan committed Jul 8, 2012
1 parent ebd18e4 commit babf24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yasa_rra_file.erl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ walk_directory_tree(Root) ->

get_name_from_path(Path) when is_list(Path)->
FlatPath = lists:flatten(Path),
{match, [Name]} = re:run(FlatPath, <<"(/\\w+)*/(?<NAME>\\w+)(/\\*)?">>,
{match, [Name]} = re:run(FlatPath, <<"(/[\\w-]+)*/(?<NAME>\\w+)(/\\*)?">>,
[{capture, ['NAME'], binary}]),
Name.

Expand Down

0 comments on commit babf24b

Please sign in to comment.