Skip to content

Commit

Permalink
Fix spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
guylabs committed Nov 4, 2014
1 parent 7d22a54 commit 5b632aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dist/angular-spring-data-rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

'use strict';

/**
/**
* @module spring-data-rest
* @version 0.3.0
* @version 0.3.0
*
* An AngularJS module to ease the work with a Spring Data REST backend.
*/
Expand Down Expand Up @@ -418,17 +418,17 @@ function checkUrl(url, resourceName, hrefKey) {
return url
}

/**
/**
* Removes the template parameters of the given url. e.g. from this url
* 'http://localhost:8080/categories{?page,size,sort}' it will remove the curly braces
* and everything within.
*
* @param {string} url the url with the template parameters
* @returns {string} the url without the template parameters
*/
function removeTemplateParameters(url) {
function removeTemplateParameters(url) {
return url.replace(/{.*}/g, '');
}
}

/**
* Returns the template parameters of the given url as array. e.g. from this url
Expand All @@ -451,4 +451,4 @@ function extractTemplateParameters(url) {
return templateParametersObject;
}

})();
})();

0 comments on commit 5b632aa

Please sign in to comment.