Fix lint errors
Change-Id: I6d198498a7bd480a2b0081bff20ba89c3941ad48
This commit is contained in:
parent
194d5095f8
commit
5c611bf1a0
@ -57,13 +57,13 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Truncates URLs to display filename only
|
* Truncates URLs to display filename only
|
||||||
* @example
|
* Example
|
||||||
* // returns '.../text.html'
|
* // returns '.../text.html'
|
||||||
* util.truncatePath.('dir/text.html');
|
* util.truncatePath.('dir/text.html');
|
||||||
* @example
|
* Example
|
||||||
* // returns 'text.html'
|
* // returns 'text.html'
|
||||||
* util.truncatePath.('text.html');
|
* util.truncatePath.('text.html');
|
||||||
* @returns {String} Returns the truncated value of a URL.
|
* @return {String} Returns the truncated value of a URL.
|
||||||
*/
|
*/
|
||||||
util.truncatePath = function(path) {
|
util.truncatePath = function(path) {
|
||||||
var pathPieces = path.split('/');
|
var pathPieces = path.split('/');
|
||||||
|
Loading…
Reference in New Issue
Block a user