bitovi/canjs — pull request #284 by onyxrev (2013-02-16 05:01:31+00:00)
Title: adding greedy space to model url splitter

I am migrating a JMVC app over to CanJS and encountered strange DOM Exception 12 errors on model CRUD events. It took me a while to chase them down and discovered that the splitter employed in CanJS was failing to properly spit on my URLs because I used multiple spaces because I like all my routes to line up "just so" for better readability:

```javascript
findAll: "GET /api/" + AWT.api_version + "/advertisements.json",
findOne : "GET /api/" + AWT.api_version + "/advertisements/{id}.json",
create : "POST /api/" + AWT.api_version + "/advertisements/advertisement.json",
update : "PUT /api/" + AWT.api_version + "/advertisements/{id}.json",
destroy : "DELETE /api/" + AWT.api_version + "/advertisements/{id}.json",
```

JMVC handled these routes okay.

This little fix just makes the splitter greedier to handle the extra spaces.