Skip to content

Commit

Permalink
Fix utils.form regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Sep 11, 2012
1 parent f47cd75 commit 8cb65bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/App.bones
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Bones.utils.serial = function (steps, callback) {

Bones.utils.form = function(form, model, options) {
var parseOptions = function (o) {
return _(o.match(/([\d\w]*)\=(\"[^\"]*\"|[^\s]*)/g)).reduce(function(memo,pair) {
return _(o.match(/([\d\w-]*)\=(\"[^\"]*\"|[^\s]*)/g)).reduce(function(memo,pair) {
pair = pair.replace(/"|'/g, '').split('=');
memo[pair[0]] = pair[1];
return memo;
Expand Down

0 comments on commit 8cb65bb

Please sign in to comment.