Skip to content

Commit c07be31

Browse files
committed
Fixes regression bug removing chars on baseUrl
Fixes mgonto#340 Fixes mgonto#338
1 parent b48cea4 commit c07be31

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

dist/restangular.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Restful Resources service for AngularJS apps
3-
* @version v1.1.4 - 2013-10-03
3+
* @version v1.1.4 - 2013-10-04
44
* @link https://github.com/mgonto/restangular
55
* @author Martin Gontovnikas <martin@gonto.com.ar>
66
* @license MIT License, http://www.opensource.org/licenses/MIT
@@ -30,7 +30,7 @@ module.provider('Restangular', function() {
3030
*/
3131
config.baseUrl = _.isUndefined(config.baseUrl) ? "" : config.baseUrl;
3232
object.setBaseUrl = function(newBaseUrl) {
33-
config.baseUrl = /\//.test(newBaseUrl)
33+
config.baseUrl = /\/$/.test(newBaseUrl)
3434
? newBaseUrl.substring(0, newBaseUrl.length-1)
3535
: newBaseUrl;
3636
return this;

0 commit comments

Comments
 (0)