Skip to content

Commit

Permalink
Handle empty paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Jan 7, 2011
1 parent 3b1f3b9 commit f79b1db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/ART.Path.js
Expand Up @@ -22,6 +22,8 @@ var parameterCount = {

var parse = function(path){

if (!path) return [];

var parts = [], index = -1,
bits = path.match(/[a-df-z]|[\-+]?(?:[\d\.]e[\-+]?|[^\s\-+,a-z])+/ig),
command, part, paramCount = 0;
Expand Down

0 comments on commit f79b1db

Please sign in to comment.