Browse Source

fixed #12: resource names can be made up with all non-space chars, but should start with a word char

Gerald 11 years ago
parent
commit
4532b0b827
1 changed files with 1 additions and 1 deletions
  1. 1 1
      background.js

+ 1 - 1
background.js

@@ -35,7 +35,7 @@ function parseMeta(d){
 		else if(!(k in meta)) meta[k]=v;	// only first value will be stored
 	});
 	meta.resource.forEach(function(i){
-		o=i.match(/^(\w+)\s+(.*)/);
+		o=i.match(/^(\w\S*)\s+(.*)/);
 		if(o) meta.resources[o[1]]=o[2];
 	});
 	delete meta.resource;