-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the interface from
truncateMiddle
and truncateSmart
option…
…s to bundling these in with the `truncate` option
- Loading branch information
1 parent
1bc184e
commit 4e84a35
Showing
12 changed files
with
299 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/*global Autolinker */ | ||
/** | ||
* A truncation feature where the ellipsis will be placed at the end of the URL. | ||
* | ||
* @param {String} anchorText | ||
* @param {Number} truncateLen The maximum length of the truncated output URL string. | ||
* @param {String} ellipsisChars The characters to place within the url, e.g. "..". | ||
* @return {String} The truncated URL. | ||
*/ | ||
Autolinker.truncate.TruncateEnd = function(anchorText, truncateLen, ellipsisChars){ | ||
return Autolinker.Util.ellipsis( anchorText, truncateLen, ellipsisChars ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/*global Autolinker */ | ||
/** | ||
* Date: 2015-10-05 | ||
* Author: Kasper Søfren <[email protected]> (https://github.com/kafoso) | ||
|
Oops, something went wrong.