From 8118a5099f862ab66d077686c81f0d199681c066 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Sun, 5 Nov 2017 16:25:09 +0100 Subject: [PATCH 1/2] Decode percent-encoding for display --- docs/examples/live-example/index.html | 1 + .../examples/live-example/live-example-all.js | 5 +- src/Autolinker.js | 13 ++++- src/match/Url.js | 31 ++++++++++ src/matcher/Url.js | 10 +++- tests/AutolinkerSpec.js | 57 ++++++++++++++++++- 6 files changed, 112 insertions(+), 5 deletions(-) diff --git a/docs/examples/live-example/index.html b/docs/examples/live-example/index.html index 857d0180..e38daaf8 100644 --- a/docs/examples/live-example/index.html +++ b/docs/examples/live-example/index.html @@ -41,6 +41,7 @@

Match Types:

Other Options:

+

diff --git a/docs/examples/live-example/live-example-all.js b/docs/examples/live-example/live-example-all.js index 2415bfd8..5b0ddb3f 100644 --- a/docs/examples/live-example/live-example-all.js +++ b/docs/examples/live-example/live-example-all.js @@ -261,7 +261,7 @@ var CheckboxOption = LiveExample.CheckboxOption; var RadioOption = LiveExample.RadioOption; var TextOption = LiveExample.TextOption; $(document).ready(function () { - var $inputEl = $('#input'), $outputEl = $('#output'), $optionsOutputEl = $('#options-output'), urlsSchemeOption, urlsWwwOption, urlsTldOption, emailOption, phoneOption, mentionOption, hashtagOption, newWindowOption, stripPrefixOption, stripTrailingSlashOption, truncateLengthOption, truncationLocationOption, classNameOption; + var $inputEl = $('#input'), $outputEl = $('#output'), $optionsOutputEl = $('#options-output'), urlsSchemeOption, urlsWwwOption, urlsTldOption, emailOption, phoneOption, mentionOption, hashtagOption, newWindowOption, stripPrefixOption, stripTrailingSlashOption, decodePercentEncodingOption, truncateLengthOption, truncationLocationOption, classNameOption; init(); function init() { urlsSchemeOption = new CheckboxOption({ name: 'urls.schemeMatches', description: 'Scheme:// URLs', defaultValue: true }).onChange(autolink); @@ -274,6 +274,7 @@ $(document).ready(function () { newWindowOption = new CheckboxOption({ name: 'newWindow', description: 'Open in new window', defaultValue: true }).onChange(autolink); stripPrefixOption = new CheckboxOption({ name: 'stripPrefix', description: 'Strip prefix', defaultValue: true }).onChange(autolink); stripTrailingSlashOption = new CheckboxOption({ name: 'stripTrailingSlash', description: 'Strip trailing slash', defaultValue: true }).onChange(autolink); + decodePercentEncodingOption = new CheckboxOption({ name: 'decodePercentEncoding', description: 'Decode percent-encoding', defaultValue: true }).onChange(autolink); truncateLengthOption = new TextOption({ name: 'truncate.length', description: 'Truncate Length', size: 2, defaultValue: '0' }).onChange(autolink); truncationLocationOption = new RadioOption({ name: 'truncate.location', description: 'Truncate Location', options: ['end', 'middle', 'smart'], defaultValue: 'end' }).onChange(autolink); classNameOption = new TextOption({ name: 'className', description: 'CSS class(es)', size: 10 }).onChange(autolink); @@ -302,6 +303,7 @@ $(document).ready(function () { newWindow: newWindowOption.getValue(), stripPrefix: stripPrefixOption.getValue(), stripTrailingSlash: stripTrailingSlashOption.getValue(), + decodePercentEncoding: decodePercentEncodingOption.getValue(), className: classNameOption.getValue(), truncate: { length: +truncateLengthOption.getValue(), @@ -324,6 +326,7 @@ $(document).ready(function () { "", (" stripPrefix : " + optionsObj.stripPrefix + ","), (" stripTrailingSlash : " + optionsObj.stripTrailingSlash + ","), + (" decodePercentEncoding : " + optionsObj.decodePercentEncoding + ","), (" newWindow : " + optionsObj.newWindow + ","), "", " truncate : {", diff --git a/src/Autolinker.js b/src/Autolinker.js index e57b2f2a..2053c2c6 100644 --- a/src/Autolinker.js +++ b/src/Autolinker.js @@ -121,6 +121,7 @@ var Autolinker = function( cfg ) { this.newWindow = typeof cfg.newWindow === 'boolean' ? cfg.newWindow : true; this.stripPrefix = this.normalizeStripPrefixCfg( cfg.stripPrefix ); this.stripTrailingSlash = typeof cfg.stripTrailingSlash === 'boolean' ? cfg.stripTrailingSlash : true; + this.decodePercentEncoding = typeof cfg.decodePercentEncoding === 'boolean' ? cfg.decodePercentEncoding : true; // Validate the value of the `mention` cfg var mention = this.mention; @@ -353,6 +354,16 @@ Autolinker.prototype = { * `http://google.com`. */ + /** + * @cfg {Boolean} [decodePercentEncoding=true] + * + * `true` to decode percent-encoded characters in URL matches, `false` to keep + * the percent-encoded characters. + * + * Example when `true`: `https://en.wikipedia.org/wiki/San_Jos%C3%A9` will + * be displayed as `https://en.wikipedia.org/wiki/San_José`. + */ + /** * @cfg {Number/Object} [truncate=0] * @@ -852,7 +863,7 @@ Autolinker.prototype = { new matchersNs.Email( { tagBuilder: tagBuilder } ), new matchersNs.Phone( { tagBuilder: tagBuilder } ), new matchersNs.Mention( { tagBuilder: tagBuilder, serviceName: this.mention } ), - new matchersNs.Url( { tagBuilder: tagBuilder, stripPrefix: this.stripPrefix, stripTrailingSlash: this.stripTrailingSlash } ) + new matchersNs.Url( { tagBuilder: tagBuilder, stripPrefix: this.stripPrefix, stripTrailingSlash: this.stripTrailingSlash, decodePercentEncoding: this.decodePercentEncoding } ) ]; return ( this.matchers = matchers ); diff --git a/src/match/Url.js b/src/match/Url.js index 8b09923a..2bf145ff 100644 --- a/src/match/Url.js +++ b/src/match/Url.js @@ -50,6 +50,10 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { * @inheritdoc Autolinker#cfg-stripTrailingSlash */ + /** + * @cfg {Boolean} decodePercentEncoding (required) + * @inheritdoc Autolinker#cfg-decodePercentEncoding + */ /** * @constructor @@ -66,6 +70,7 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { if( cfg.protocolRelativeMatch == null ) throw new Error( '`protocolRelativeMatch` cfg required' ); if( cfg.stripPrefix == null ) throw new Error( '`stripPrefix` cfg required' ); if( cfg.stripTrailingSlash == null ) throw new Error( '`stripTrailingSlash` cfg required' ); + if( cfg.decodePercentEncoding == null ) throw new Error( '`decodePercentEncoding` cfg required' ); // @endif this.urlMatchType = cfg.urlMatchType; @@ -74,6 +79,7 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { this.protocolRelativeMatch = cfg.protocolRelativeMatch; this.stripPrefix = cfg.stripPrefix; this.stripTrailingSlash = cfg.stripTrailingSlash; + this.decodePercentEncoding = cfg.decodePercentEncoding; }, @@ -192,6 +198,9 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { if( this.stripTrailingSlash ) { anchorText = this.removeTrailingSlash( anchorText ); // remove trailing slash, if there is one } + if( this.decodePercentEncoding ) { + anchorText = this.removePercentEncoding( anchorText); + } return anchorText; }, @@ -254,6 +263,28 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { anchorText = anchorText.slice( 0, -1 ); } return anchorText; + }, + + /** + * Decodes percent-encoded characters from the given `anchorText`, in preparation for the text to be displayed. + * + * @private + * @param {String} anchorText The text of the anchor that is being generated, for which to decode any percent-encoded characters. + * @return {String} The `anchorText`, with the percent-encoded characters decoded. + */ + removePercentEncoding : function( anchorText ) { + try { + return decodeURIComponent( anchorText + .replace( /%22/gi, '"' ) + .replace( /%26/gi, '&' ) + .replace( /%27/gi, ''') + .replace( /%3C/gi, '<' ) + .replace( /%3E/gi, '>' ) + ); + } catch (e) { + // Invalid escape sequence. + return anchorText; + } } } ); \ No newline at end of file diff --git a/src/matcher/Url.js b/src/matcher/Url.js index 4ac0e1c6..64eb32a2 100644 --- a/src/matcher/Url.js +++ b/src/matcher/Url.js @@ -20,6 +20,11 @@ Autolinker.matcher.Url = Autolinker.Util.extend( Autolinker.matcher.Matcher, { * @inheritdoc Autolinker#stripTrailingSlash */ + /** + * @cfg {Boolean} decodePercentEncoding (required) + * @inheritdoc Autolinker#decodePercentEncoding + */ + /** * @private @@ -155,6 +160,7 @@ Autolinker.matcher.Url = Autolinker.Util.extend( Autolinker.matcher.Matcher, { this.stripPrefix = cfg.stripPrefix; this.stripTrailingSlash = cfg.stripTrailingSlash; + this.decodePercentEncoding = cfg.decodePercentEncoding; }, @@ -165,6 +171,7 @@ Autolinker.matcher.Url = Autolinker.Util.extend( Autolinker.matcher.Matcher, { var matcherRegex = this.matcherRegex, stripPrefix = this.stripPrefix, stripTrailingSlash = this.stripTrailingSlash, + decodePercentEncoding = this.decodePercentEncoding, tagBuilder = this.tagBuilder, matches = [], match; @@ -227,7 +234,8 @@ Autolinker.matcher.Url = Autolinker.Util.extend( Autolinker.matcher.Matcher, { protocolUrlMatch : protocolUrlMatch, protocolRelativeMatch : !!protocolRelativeMatch, stripPrefix : stripPrefix, - stripTrailingSlash : stripTrailingSlash + stripTrailingSlash : stripTrailingSlash, + decodePercentEncoding : decodePercentEncoding, } ) ); } diff --git a/tests/AutolinkerSpec.js b/tests/AutolinkerSpec.js index c7e651e7..92c1ea05 100644 --- a/tests/AutolinkerSpec.js +++ b/tests/AutolinkerSpec.js @@ -762,7 +762,7 @@ describe( "Autolinker", function() { it( "should include escaped parentheses in the URL", function() { var result = autolinker.link( "Here's an example from CodingHorror: http://en.wikipedia.org/wiki/PC_Tools_%28Central_Point_Software%29" ); - expect( result ).toBe( 'Here\'s an example from CodingHorror: en.wikipedia.org/wiki/PC_Tools_%28Central_Point_Software%29' ); + expect( result ).toBe( 'Here\'s an example from CodingHorror: en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)' ); } ); } ); @@ -818,6 +818,20 @@ describe( "Autolinker", function() { expect( result ).toBe( 'google.no/maps/place/Gary\'s+Deli/@52.3664378,4.869345,18z/data=!4m7!1m4!3m3!1s0x47c609c14a6680df:0x643f005113531f15!2sBeertemple!3b1!3m1!1s0x0000000000000000:0x51a8a6adb4307be6?hl=no' ); } ); + + it( "should decode emojis", function() { + var result = autolinker.link( "Danish flag emoji: https://emojipedia.org/%F0%9F%87%A9%F0%9F%87%B0" ); + + expect( result ).toBe( 'Danish flag emoji: emojipedia.org/🇩🇰' ); + } ); + + + it( "should HTML-encode escape-encoded special characters", function() { + var result = autolinker.link( "Link: http://example.com/%3c%3E%22%27%26" ); + + expect( result ).toBe( 'Link: example.com/<>"'&' ); + } ); + } ); @@ -861,7 +875,7 @@ describe( "Autolinker", function() { it( "should automatically link a URL with a complex hash (such as a Google Analytics url)", function() { var result = autolinker.link( "Joe went to https://www.google.com/analytics/web/?pli=1#my-reports/Obif-Y6qQB2xAJk0ZZE1Zg/a4454143w36378534p43704543/%3F.date00%3D20120314%26_.date01%3D20120314%268534-table.rowStart%3D0%268534-table.rowCount%3D25/ and analyzed his analytics" ); - expect( result ).toBe( 'Joe went to google.com/analytics/web/?pli=1#my-reports/Obif-Y6qQB2xAJk0ZZE1Zg/a4454143w36378534p43704543/%3F.date00%3D20120314%26_.date01%3D20120314%268534-table.rowStart%3D0%268534-table.rowCount%3D25 and analyzed his analytics' ); + expect( result ).toBe( 'Joe went to google.com/analytics/web/?pli=1#my-reports/Obif-Y6qQB2xAJk0ZZE1Zg/a4454143w36378534p43704543/?.date00=20120314&_.date01=20120314&8534-table.rowStart=0&8534-table.rowCount=25 and analyzed his analytics' ); } ); @@ -1729,6 +1743,7 @@ describe( "Autolinker", function() { expect( result ).toBe( tobe ); } ); + } ); @@ -1902,6 +1917,44 @@ describe( "Autolinker", function() { } ); + describe( "`decodePercentEncoding` option", function() { + + it( "by default, should decode percent-encoding", function() { + var result = Autolinker.link( "https://en.wikipedia.org/wiki/San_Jos%C3%A9", { + stripPrefix : false, + //decodePercentEncoding : true, -- not providing this cfg + newWindow : false + } ); + + expect( result ).toBe( 'https://en.wikipedia.org/wiki/San_José' ); + } ); + + + it( "when provided as `true`, should decode percent-encoding", function() { + var result = Autolinker.link( "https://en.wikipedia.org/wiki/San_Jos%C3%A9", { + stripPrefix : false, + decodePercentEncoding : true, + newWindow : false + } ); + + expect( result ).toBe( 'https://en.wikipedia.org/wiki/San_José' ); + } ); + + + it( "when provided as `false`, should not decode percent-encoding", + function() { + var result = Autolinker.link( "https://en.wikipedia.org/wiki/San_Jos%C3%A9", { + stripPrefix : false, + decodePercentEncoding : false, + newWindow : false + } ); + + expect( result ).toBe( 'https://en.wikipedia.org/wiki/San_Jos%C3%A9' ); + } ); + + } ); + + describe( "`truncate` option", function() { describe( 'number form', function() { From f068ab7d26bc722e2503905d01f03c03680ee058 Mon Sep 17 00:00:00 2001 From: Gregory Jacobs Date: Mon, 6 Nov 2017 21:41:02 -0500 Subject: [PATCH 2/2] Version bump 1.6.0 --- dist/Autolinker.js | 58 +++++++++++++++++-- dist/Autolinker.min.js | 6 +- .../data-0cfafcc469bd1e77c3fc920bb1640cdf.js | 1 - .../data-f36136e80946f52beafafdcdfb2138d1.js | 1 + docs/api/index.html | 10 ++-- docs/api/output/Autolinker.js | 2 +- docs/api/output/Autolinker.match.Url.js | 2 +- docs/api/output/Autolinker.matcher.Matcher.js | 2 +- docs/api/output/Autolinker.matcher.Mention.js | 2 +- docs/api/output/Autolinker.matcher.Url.js | 2 +- .../Autolinker.truncate.TruncateMiddle.js | 2 +- .../Autolinker.truncate.TruncateSmart.js | 2 +- docs/api/source/Autolinker.html | 13 ++++- docs/api/source/Url.html | 31 ++++++++++ docs/api/source/Url2.html | 10 +++- docs/dist/Autolinker.js | 58 +++++++++++++++++-- docs/dist/Autolinker.min.js | 6 +- .../examples/live-example/live-example-all.js | 5 +- package.json | 2 +- 19 files changed, 181 insertions(+), 34 deletions(-) delete mode 100644 docs/api/data-0cfafcc469bd1e77c3fc920bb1640cdf.js create mode 100644 docs/api/data-f36136e80946f52beafafdcdfb2138d1.js diff --git a/dist/Autolinker.js b/dist/Autolinker.js index 310e08d3..368d5d35 100644 --- a/dist/Autolinker.js +++ b/dist/Autolinker.js @@ -1,6 +1,6 @@ /*! * Autolinker.js - * 1.5.0 + * 1.6.0 * * Copyright(c) 2017 Gregory Jacobs * MIT License @@ -139,6 +139,7 @@ var Autolinker = function( cfg ) { this.newWindow = typeof cfg.newWindow === 'boolean' ? cfg.newWindow : true; this.stripPrefix = this.normalizeStripPrefixCfg( cfg.stripPrefix ); this.stripTrailingSlash = typeof cfg.stripTrailingSlash === 'boolean' ? cfg.stripTrailingSlash : true; + this.decodePercentEncoding = typeof cfg.decodePercentEncoding === 'boolean' ? cfg.decodePercentEncoding : true; // Validate the value of the `mention` cfg var mention = this.mention; @@ -240,7 +241,7 @@ Autolinker.parse = function( textOrHtml, options ) { * * Ex: 0.25.1 */ -Autolinker.version = '1.5.0'; +Autolinker.version = '1.6.0'; Autolinker.prototype = { @@ -371,6 +372,16 @@ Autolinker.prototype = { * `http://google.com`. */ + /** + * @cfg {Boolean} [decodePercentEncoding=true] + * + * `true` to decode percent-encoded characters in URL matches, `false` to keep + * the percent-encoded characters. + * + * Example when `true`: `https://en.wikipedia.org/wiki/San_Jos%C3%A9` will + * be displayed as `https://en.wikipedia.org/wiki/San_José`. + */ + /** * @cfg {Number/Object} [truncate=0] * @@ -870,7 +881,7 @@ Autolinker.prototype = { new matchersNs.Email( { tagBuilder: tagBuilder } ), new matchersNs.Phone( { tagBuilder: tagBuilder } ), new matchersNs.Mention( { tagBuilder: tagBuilder, serviceName: this.mention } ), - new matchersNs.Url( { tagBuilder: tagBuilder, stripPrefix: this.stripPrefix, stripTrailingSlash: this.stripTrailingSlash } ) + new matchersNs.Url( { tagBuilder: tagBuilder, stripPrefix: this.stripPrefix, stripTrailingSlash: this.stripTrailingSlash, decodePercentEncoding: this.decodePercentEncoding } ) ]; return ( this.matchers = matchers ); @@ -2935,6 +2946,10 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { * @inheritdoc Autolinker#cfg-stripTrailingSlash */ + /** + * @cfg {Boolean} decodePercentEncoding (required) + * @inheritdoc Autolinker#cfg-decodePercentEncoding + */ /** * @constructor @@ -2950,6 +2965,7 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { if( cfg.protocolRelativeMatch == null ) throw new Error( '`protocolRelativeMatch` cfg required' ); if( cfg.stripPrefix == null ) throw new Error( '`stripPrefix` cfg required' ); if( cfg.stripTrailingSlash == null ) throw new Error( '`stripTrailingSlash` cfg required' ); + if( cfg.decodePercentEncoding == null ) throw new Error( '`decodePercentEncoding` cfg required' ); this.urlMatchType = cfg.urlMatchType; this.url = cfg.url; @@ -2957,6 +2973,7 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { this.protocolRelativeMatch = cfg.protocolRelativeMatch; this.stripPrefix = cfg.stripPrefix; this.stripTrailingSlash = cfg.stripTrailingSlash; + this.decodePercentEncoding = cfg.decodePercentEncoding; }, @@ -3075,6 +3092,9 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { if( this.stripTrailingSlash ) { anchorText = this.removeTrailingSlash( anchorText ); // remove trailing slash, if there is one } + if( this.decodePercentEncoding ) { + anchorText = this.removePercentEncoding( anchorText); + } return anchorText; }, @@ -3137,6 +3157,28 @@ Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, { anchorText = anchorText.slice( 0, -1 ); } return anchorText; + }, + + /** + * Decodes percent-encoded characters from the given `anchorText`, in preparation for the text to be displayed. + * + * @private + * @param {String} anchorText The text of the anchor that is being generated, for which to decode any percent-encoded characters. + * @return {String} The `anchorText`, with the percent-encoded characters decoded. + */ + removePercentEncoding : function( anchorText ) { + try { + return decodeURIComponent( anchorText + .replace( /%22/gi, '"' ) + .replace( /%26/gi, '&' ) + .replace( /%27/gi, ''') + .replace( /%3C/gi, '<' ) + .replace( /%3E/gi, '>' ) + ); + } catch (e) { + // Invalid escape sequence. + return anchorText; + } } } ); @@ -3511,6 +3553,11 @@ Autolinker.matcher.Url = Autolinker.Util.extend( Autolinker.matcher.Matcher, { * @inheritdoc Autolinker#stripTrailingSlash */ + /** + * @cfg {Boolean} decodePercentEncoding (required) + * @inheritdoc Autolinker#decodePercentEncoding + */ + /** * @private @@ -3644,6 +3691,7 @@ Autolinker.matcher.Url = Autolinker.Util.extend( Autolinker.matcher.Matcher, { this.stripPrefix = cfg.stripPrefix; this.stripTrailingSlash = cfg.stripTrailingSlash; + this.decodePercentEncoding = cfg.decodePercentEncoding; }, @@ -3654,6 +3702,7 @@ Autolinker.matcher.Url = Autolinker.Util.extend( Autolinker.matcher.Matcher, { var matcherRegex = this.matcherRegex, stripPrefix = this.stripPrefix, stripTrailingSlash = this.stripTrailingSlash, + decodePercentEncoding = this.decodePercentEncoding, tagBuilder = this.tagBuilder, matches = [], match; @@ -3716,7 +3765,8 @@ Autolinker.matcher.Url = Autolinker.Util.extend( Autolinker.matcher.Matcher, { protocolUrlMatch : protocolUrlMatch, protocolRelativeMatch : !!protocolRelativeMatch, stripPrefix : stripPrefix, - stripTrailingSlash : stripTrailingSlash + stripTrailingSlash : stripTrailingSlash, + decodePercentEncoding : decodePercentEncoding, } ) ); } diff --git a/dist/Autolinker.min.js b/dist/Autolinker.min.js index 4af6d393..970c3a07 100644 --- a/dist/Autolinker.min.js +++ b/dist/Autolinker.min.js @@ -1,11 +1,11 @@ /*! * Autolinker.js - * 1.5.0 + * 1.6.0 * * Copyright(c) 2017 Gregory Jacobs * MIT License * * https://github.com/gregjacobs/Autolinker.js */ -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.Autolinker=t()}(this,function(){var e=function(t){t=t||{},this.version=e.version,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"!=typeof t.email||t.email,this.phone="boolean"!=typeof t.phone||t.phone,this.hashtag=t.hashtag||!1,this.mention=t.mention||!1,this.newWindow="boolean"!=typeof t.newWindow||t.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"!=typeof t.stripTrailingSlash||t.stripTrailingSlash;var r=this.mention;if(r!==!1&&"twitter"!==r&&"instagram"!==r)throw new Error("invalid `mention` cfg - see docs");var n=this.hashtag;if(n!==!1&&"twitter"!==n&&"facebook"!==n&&"instagram"!==n)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||"",this.replaceFn=t.replaceFn||null,this.context=t.context||this,this.htmlParser=null,this.matchers=null,this.tagBuilder=null};return e.link=function(t,r){var n=new e(r);return n.link(t)},e.parse=function(t,r){var n=new e(r);return n.parse(t)},e.version="1.5.0",e.prototype={constructor:e,normalizeUrlsCfg:function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},normalizeStripPrefixCfg:function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},normalizeTruncateCfg:function(t){return"number"==typeof t?{length:t,location:"end"}:e.Util.defaults(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},parse:function(e){for(var t=this.getHtmlParser(),r=t.parse(e),n=0,a=[],i=0,s=r.length;ia?t:t+1;e.splice(s,1);continue}e[t+1].getOffset()<=i&&e.splice(t+1,1)}}return e},removeUnwantedMatches:function(t){var r=e.Util.remove;return this.hashtag||r(t,function(e){return"hashtag"===e.getType()}),this.email||r(t,function(e){return"email"===e.getType()}),this.phone||r(t,function(e){return"phone"===e.getType()}),this.mention||r(t,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||r(t,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.wwwMatches||r(t,function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()}),this.urls.tldMatches||r(t,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),t},parseText:function(e,t){t=t||0;for(var r=this.getMatchers(),n=[],a=0,i=r.length;at&&(null==r?(r="…",n=3):n=r.length,e=e.substring(0,t-n)+r),e},indexOf:function(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r=0;r--)t(e[r])===!0&&e.splice(r,1)},splitAndCapture:function(e,t){for(var r,n=[],a=0;r=t.exec(e);)n.push(e.substring(a,r.index)),n.push(r[0]),a=r.index+r[0].length;return n.push(e.substring(a)),n},trim:function(e){return e.replace(this.trimRegex,"")}},e.HtmlTag=e.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(t){e.Util.assign(this,t),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(e){return this.tagName=e,this},getTagName:function(){return this.tagName||""},setAttr:function(e,t){var r=this.getAttrs();return r[e]=t,this},getAttr:function(e){return this.getAttrs()[e]},setAttrs:function(t){var r=this.getAttrs();return e.Util.assign(r,t),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(e){return this.setAttr("class",e)},addClass:function(t){for(var r,n=this.getClass(),a=this.whitespaceRegex,i=e.Util.indexOf,s=n?n.split(a):[],o=t.split(a);r=o.shift();)i(s,r)===-1&&s.push(r);return this.getAttrs()["class"]=s.join(" "),this},removeClass:function(t){for(var r,n=this.getClass(),a=this.whitespaceRegex,i=e.Util.indexOf,s=n?n.split(a):[],o=t.split(a);s.length&&(r=o.shift());){var c=i(s,r);c!==-1&&s.splice(c,1)}return this.getAttrs()["class"]=s.join(" "),this},getClass:function(){return this.getAttrs()["class"]||""},hasClass:function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},setInnerHtml:function(e){return this.innerHtml=e,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var e=this.getTagName(),t=this.buildAttrsStr();return t=t?" "+t:"",["<",e,t,">",this.getInnerHtml(),""].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+'="'+e[r]+'"');return t.join(" ")}}),e.RegexLib=function(){var e="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",r=e+t,n=new RegExp("(?:["+t+"]{1,3}\\.){3}["+t+"]{1,3}"),a="["+r+"](?:["+r+"\\-]*["+r+"])?",i=new RegExp("(?:(?:(?:"+a+"\\.)*(?:"+a+"))|(?:"+n.source+"))");return{alphaNumericCharsStr:r,alphaCharsStr:e,domainNameRegex:i}}(),e.AnchorTagBuilder=e.Util.extend(Object,{constructor:function(e){e=e||{},this.newWindow=e.newWindow,this.truncate=e.truncate,this.className=e.className},build:function(t){return new e.HtmlTag({tagName:"a",attrs:this.createAttrs(t),innerHtml:this.processAnchorText(t.getAnchorText())})},createAttrs:function(e){var t={href:e.getAnchorHref()},r=this.createCssClass(e);return r&&(t["class"]=r),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length\/=\x00-\x1F\x7F]+/,n=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,a=r.source+"(?:\\s*=\\s*"+n.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",a,"|",n.source+")",")*",">",")","|","(?:","<(/)?","(?:",e.source,"|","(?:","("+t.source+")","\\s*/?",")","|","(?:","("+t.source+")","\\s+","(?:","(?:\\s+|\\b)",a,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(e){for(var t,r,n=this.htmlRegex,a=0,i=[];null!==(t=n.exec(e));){var s=t[0],o=t[3],c=t[1]||t[4]||t[5],h=!!t[2],l=t.index,u=e.substring(a,l);u&&(r=this.parseTextAndEntityNodes(a,u),i.push.apply(i,r)),o?i.push(this.createCommentNode(l,s,o)):i.push(this.createElementNode(l,s,c,h)),a=l+s.length}if(a@\\[\\]',a=t+r,i=a+n,s=new RegExp("(?:["+a+"](?:["+a+']|\\.(?!\\.|@))*|\\"['+i+'.]+\\")@'),o=e.RegexLib.domainNameRegex,c=e.tldRegex;return new RegExp([s.source,o.source,"\\.",c.source].join(""),"gi")}(),parseMatches:function(t){for(var r,n=this.matcherRegex,a=this.tagBuilder,i=[];null!==(r=n.exec(t));){var s=r[0];i.push(new e.match.Email({tagBuilder:a,matchedText:s,offset:r.index,email:s}))}return i}}),e.matcher.Hashtag=e.Util.extend(e.matcher.Matcher,{matcherRegex:new RegExp("#[_"+e.RegexLib.alphaNumericCharsStr+"]{1,139}","g"),nonWordCharRegex:new RegExp("[^"+e.RegexLib.alphaNumericCharsStr+"]"),constructor:function(t){e.matcher.Matcher.prototype.constructor.call(this,t),this.serviceName=t.serviceName},parseMatches:function(t){for(var r,n=this.matcherRegex,a=this.nonWordCharRegex,i=this.serviceName,s=this.tagBuilder,o=[];null!==(r=n.exec(t));){var c=r.index,h=t.charAt(c-1);if(0===c||a.test(h)){var l=r[0],u=r[0].slice(1);o.push(new e.match.Hashtag({tagBuilder:s,matchedText:l,offset:c,serviceName:i,hashtag:u}))}}return o}}),e.matcher.Phone=e.Util.extend(e.matcher.Matcher,{matcherRegex:/(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4}([,;]*[0-9]+#?)*/g,parseMatches:function(t){for(var r,n=this.matcherRegex,a=this.tagBuilder,i=[];null!==(r=n.exec(t));){var s=r[0],o=s.replace(/[^0-9,;#]/g,""),c=!!r[1];this.testMatch(r[2])&&this.testMatch(s)&&i.push(new e.match.Phone({tagBuilder:a,matchedText:s,offset:r.index,number:o,plusSign:c}))}return i},testMatch:function(e){return/\D/.test(e)}}),e.matcher.Mention=e.Util.extend(e.matcher.Matcher,{matcherRegexes:{twitter:new RegExp("@[_"+e.RegexLib.alphaNumericCharsStr+"]{1,20}","g"),instagram:new RegExp("@[_."+e.RegexLib.alphaNumericCharsStr+"]{1,50}","g")},nonWordCharRegex:new RegExp("[^"+e.RegexLib.alphaNumericCharsStr+"]"),constructor:function(t){e.matcher.Matcher.prototype.constructor.call(this,t),this.serviceName=t.serviceName},parseMatches:function(t){var r,n=this.matcherRegexes[this.serviceName],a=this.nonWordCharRegex,i=this.serviceName,s=this.tagBuilder,o=[];if(!n)return o;for(;null!==(r=n.exec(t));){var c=r.index,h=t.charAt(c-1);if(0===c||a.test(h)){var l=r[0].replace(/\.+$/g,""),u=l.slice(1);o.push(new e.match.Mention({tagBuilder:s,matchedText:l,offset:c,serviceName:i,mention:u}))}}return o}}),e.matcher.Url=e.Util.extend(e.matcher.Matcher,{matcherRegex:function(){var t=/(?:[A-Za-z][-.+A-Za-z0-9]*:(?![A-Za-z][-.+A-Za-z0-9]*:\/\/)(?!\d+\/?)(?:\/\/)?)/,r=/(?:www\.)/,n=e.RegexLib.domainNameRegex,a=e.tldRegex,i=e.RegexLib.alphaNumericCharsStr,s=new RegExp("[/?#](?:["+i+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;✓]*["+i+"\\-+&@#/%=~_()|'$*\\[\\]✓])?");return new RegExp(["(?:","(",t.source,n.source,")","|","(","(//)?",r.source,n.source,")","|","(","(//)?",n.source+"\\.",a.source,"(?![-"+i+"])",")",")","(?::[0-9]+)?","(?:"+s.source+")?"].join(""),"gi")}(),wordCharRegExp:new RegExp("["+e.RegexLib.alphaNumericCharsStr+"]"),openParensRe:/\(/g,closeParensRe:/\)/g,constructor:function(t){e.matcher.Matcher.prototype.constructor.call(this,t),this.stripPrefix=t.stripPrefix,this.stripTrailingSlash=t.stripTrailingSlash},parseMatches:function(t){for(var r,n=this.matcherRegex,a=this.stripPrefix,i=this.stripTrailingSlash,s=this.tagBuilder,o=[];null!==(r=n.exec(t));){var c=r[0],h=r[1],l=r[2],u=r[3],g=r[5],m=r.index,f=u||g,p=t.charAt(m-1);if(e.matcher.UrlMatchValidator.isValid(c,h)&&!(m>0&&"@"===p||m>0&&f&&this.wordCharRegExp.test(p))){if(/\?$/.test(c)&&(c=c.substr(0,c.length-1)),this.matchHasUnbalancedClosingParen(c))c=c.substr(0,c.length-1);else{var d=this.matchHasInvalidCharAfterTld(c,h);d>-1&&(c=c.substr(0,d))}var x=h?"scheme":l?"www":"tld",b=!!h;o.push(new e.match.Url({tagBuilder:s,matchedText:c,offset:m,urlMatchType:x,url:c,protocolUrlMatch:b,protocolRelativeMatch:!!f,stripPrefix:a,stripTrailingSlash:i}))}}return o},matchHasUnbalancedClosingParen:function(e){var t=e.charAt(e.length-1);if(")"===t){var r=e.match(this.openParensRe),n=e.match(this.closeParensRe),a=r&&r.length||0,i=n&&n.length||0;if(a-1},isValidUriScheme:function(e){var t=e.match(this.uriSchemeRegex)[0].toLowerCase();return"javascript:"!==t&&"vbscript:"!==t},urlMatchDoesNotHaveProtocolOrDot:function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||e.indexOf(".")!==-1)},urlMatchDoesNotHaveAtLeastOneWordChar:function(e,t){return!(!e||!t)&&!this.hasWordCharAfterProtocolRegex.test(e)}},e.truncate.TruncateEnd=function(t,r,n){return e.Util.ellipsis(t,r,n)},e.truncate.TruncateMiddle=function(e,t,r){if(e.length<=t)return e;var n,a;null==r?(r="…",n=8,a=3):(n=r.length,a=r.length);var i=t-a,s="";return i>0&&(s=e.substr(-1*Math.floor(i/2))),(e.substr(0,Math.ceil(i/2))+r+s).substr(0,i+n)},e.truncate.TruncateSmart=function(e,t,r){var n,a;null==r?(r="…",a=3,n=8):(a=r.length,n=r.length);var i=function(e){var t={},r=e,n=r.match(/^([a-z]+):\/\//i);return n&&(t.scheme=n[1],r=r.substr(n[0].length)),n=r.match(/^(.*?)(?=(\?|#|\/|$))/i),n&&(t.host=n[1],r=r.substr(n[0].length)),n=r.match(/^\/(.*?)(?=(\?|#|$))/i),n&&(t.path=n[1],r=r.substr(n[0].length)),n=r.match(/^\?(.*?)(?=(#|$))/i),n&&(t.query=n[1],r=r.substr(n[0].length)),n=r.match(/^#(.*?)$/i),n&&(t.fragment=n[1]),t},s=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},o=function(e,t){var n=t/2,a=Math.ceil(n),i=-1*Math.floor(n),s="";return i<0&&(s=e.substr(i)),e.substr(0,a)+r+s};if(e.length<=t)return e;var c=t-a,h=i(e);if(h.query){var l=h.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);l&&(h.query=h.query.substr(0,l[1].length),e=s(h))}if(e.length<=t)return e;if(h.host&&(h.host=h.host.replace(/^www\./,""),e=s(h)),e.length<=t)return e;var u="";if(h.host&&(u+=h.host),u.length>=c)return h.host.length==t?(h.host.substr(0,t-a)+r).substr(0,c+n):o(u,c).substr(0,c+n);var g="";if(h.path&&(g+="/"+h.path),h.query&&(g+="?"+h.query),g){if((u+g).length>=c){if((u+g).length==t)return(u+g).substr(0,t);var m=c-u.length;return(u+o(g,m)).substr(0,c+n)}u+=g}if(h.fragment){var f="#"+h.fragment;if((u+f).length>=c){if((u+f).length==t)return(u+f).substr(0,t);var p=c-u.length;return(u+o(f,p)).substr(0,c+n)}u+=f}if(h.scheme&&h.host){var d=h.scheme+"://";if((u+d).length0&&(x=u.substr(-1*Math.floor(c/2))),(u.substr(0,Math.ceil(c/2))+r+x).substr(0,c+n)},e}); \ No newline at end of file +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.Autolinker=t()}(this,function(){var e=function(t){t=t||{},this.version=e.version,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"!=typeof t.email||t.email,this.phone="boolean"!=typeof t.phone||t.phone,this.hashtag=t.hashtag||!1,this.mention=t.mention||!1,this.newWindow="boolean"!=typeof t.newWindow||t.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"!=typeof t.stripTrailingSlash||t.stripTrailingSlash,this.decodePercentEncoding="boolean"!=typeof t.decodePercentEncoding||t.decodePercentEncoding;var r=this.mention;if(r!==!1&&"twitter"!==r&&"instagram"!==r)throw new Error("invalid `mention` cfg - see docs");var n=this.hashtag;if(n!==!1&&"twitter"!==n&&"facebook"!==n&&"instagram"!==n)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||"",this.replaceFn=t.replaceFn||null,this.context=t.context||this,this.htmlParser=null,this.matchers=null,this.tagBuilder=null};return e.link=function(t,r){var n=new e(r);return n.link(t)},e.parse=function(t,r){var n=new e(r);return n.parse(t)},e.version="1.6.0",e.prototype={constructor:e,normalizeUrlsCfg:function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},normalizeStripPrefixCfg:function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},normalizeTruncateCfg:function(t){return"number"==typeof t?{length:t,location:"end"}:e.Util.defaults(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},parse:function(e){for(var t=this.getHtmlParser(),r=t.parse(e),n=0,a=[],i=0,s=r.length;ia?t:t+1;e.splice(s,1);continue}e[t+1].getOffset()<=i&&e.splice(t+1,1)}}return e},removeUnwantedMatches:function(t){var r=e.Util.remove;return this.hashtag||r(t,function(e){return"hashtag"===e.getType()}),this.email||r(t,function(e){return"email"===e.getType()}),this.phone||r(t,function(e){return"phone"===e.getType()}),this.mention||r(t,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||r(t,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.wwwMatches||r(t,function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()}),this.urls.tldMatches||r(t,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),t},parseText:function(e,t){t=t||0;for(var r=this.getMatchers(),n=[],a=0,i=r.length;at&&(null==r?(r="…",n=3):n=r.length,e=e.substring(0,t-n)+r),e},indexOf:function(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r=0;r--)t(e[r])===!0&&e.splice(r,1)},splitAndCapture:function(e,t){for(var r,n=[],a=0;r=t.exec(e);)n.push(e.substring(a,r.index)),n.push(r[0]),a=r.index+r[0].length;return n.push(e.substring(a)),n},trim:function(e){return e.replace(this.trimRegex,"")}},e.HtmlTag=e.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(t){e.Util.assign(this,t),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(e){return this.tagName=e,this},getTagName:function(){return this.tagName||""},setAttr:function(e,t){var r=this.getAttrs();return r[e]=t,this},getAttr:function(e){return this.getAttrs()[e]},setAttrs:function(t){var r=this.getAttrs();return e.Util.assign(r,t),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(e){return this.setAttr("class",e)},addClass:function(t){for(var r,n=this.getClass(),a=this.whitespaceRegex,i=e.Util.indexOf,s=n?n.split(a):[],o=t.split(a);r=o.shift();)i(s,r)===-1&&s.push(r);return this.getAttrs()["class"]=s.join(" "),this},removeClass:function(t){for(var r,n=this.getClass(),a=this.whitespaceRegex,i=e.Util.indexOf,s=n?n.split(a):[],o=t.split(a);s.length&&(r=o.shift());){var c=i(s,r);c!==-1&&s.splice(c,1)}return this.getAttrs()["class"]=s.join(" "),this},getClass:function(){return this.getAttrs()["class"]||""},hasClass:function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},setInnerHtml:function(e){return this.innerHtml=e,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var e=this.getTagName(),t=this.buildAttrsStr();return t=t?" "+t:"",["<",e,t,">",this.getInnerHtml(),""].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+'="'+e[r]+'"');return t.join(" ")}}),e.RegexLib=function(){var e="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",r=e+t,n=new RegExp("(?:["+t+"]{1,3}\\.){3}["+t+"]{1,3}"),a="["+r+"](?:["+r+"\\-]*["+r+"])?",i=new RegExp("(?:(?:(?:"+a+"\\.)*(?:"+a+"))|(?:"+n.source+"))");return{alphaNumericCharsStr:r,alphaCharsStr:e,domainNameRegex:i}}(),e.AnchorTagBuilder=e.Util.extend(Object,{constructor:function(e){e=e||{},this.newWindow=e.newWindow,this.truncate=e.truncate,this.className=e.className},build:function(t){return new e.HtmlTag({tagName:"a",attrs:this.createAttrs(t),innerHtml:this.processAnchorText(t.getAnchorText())})},createAttrs:function(e){var t={href:e.getAnchorHref()},r=this.createCssClass(e);return r&&(t["class"]=r),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length\/=\x00-\x1F\x7F]+/,n=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,a=r.source+"(?:\\s*=\\s*"+n.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",a,"|",n.source+")",")*",">",")","|","(?:","<(/)?","(?:",e.source,"|","(?:","("+t.source+")","\\s*/?",")","|","(?:","("+t.source+")","\\s+","(?:","(?:\\s+|\\b)",a,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(e){for(var t,r,n=this.htmlRegex,a=0,i=[];null!==(t=n.exec(e));){var s=t[0],o=t[3],c=t[1]||t[4]||t[5],h=!!t[2],l=t.index,u=e.substring(a,l);u&&(r=this.parseTextAndEntityNodes(a,u),i.push.apply(i,r)),o?i.push(this.createCommentNode(l,s,o)):i.push(this.createElementNode(l,s,c,h)),a=l+s.length}if(a@\\[\\]',a=t+r,i=a+n,s=new RegExp("(?:["+a+"](?:["+a+']|\\.(?!\\.|@))*|\\"['+i+'.]+\\")@'),o=e.RegexLib.domainNameRegex,c=e.tldRegex;return new RegExp([s.source,o.source,"\\.",c.source].join(""),"gi")}(),parseMatches:function(t){for(var r,n=this.matcherRegex,a=this.tagBuilder,i=[];null!==(r=n.exec(t));){var s=r[0];i.push(new e.match.Email({tagBuilder:a,matchedText:s,offset:r.index,email:s}))}return i}}),e.matcher.Hashtag=e.Util.extend(e.matcher.Matcher,{matcherRegex:new RegExp("#[_"+e.RegexLib.alphaNumericCharsStr+"]{1,139}","g"),nonWordCharRegex:new RegExp("[^"+e.RegexLib.alphaNumericCharsStr+"]"),constructor:function(t){e.matcher.Matcher.prototype.constructor.call(this,t),this.serviceName=t.serviceName},parseMatches:function(t){for(var r,n=this.matcherRegex,a=this.nonWordCharRegex,i=this.serviceName,s=this.tagBuilder,o=[];null!==(r=n.exec(t));){var c=r.index,h=t.charAt(c-1);if(0===c||a.test(h)){var l=r[0],u=r[0].slice(1);o.push(new e.match.Hashtag({tagBuilder:s,matchedText:l,offset:c,serviceName:i,hashtag:u}))}}return o}}),e.matcher.Phone=e.Util.extend(e.matcher.Matcher,{matcherRegex:/(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4}([,;]*[0-9]+#?)*/g,parseMatches:function(t){for(var r,n=this.matcherRegex,a=this.tagBuilder,i=[];null!==(r=n.exec(t));){var s=r[0],o=s.replace(/[^0-9,;#]/g,""),c=!!r[1];this.testMatch(r[2])&&this.testMatch(s)&&i.push(new e.match.Phone({tagBuilder:a,matchedText:s,offset:r.index,number:o,plusSign:c}))}return i},testMatch:function(e){return/\D/.test(e)}}),e.matcher.Mention=e.Util.extend(e.matcher.Matcher,{matcherRegexes:{twitter:new RegExp("@[_"+e.RegexLib.alphaNumericCharsStr+"]{1,20}","g"),instagram:new RegExp("@[_."+e.RegexLib.alphaNumericCharsStr+"]{1,50}","g")},nonWordCharRegex:new RegExp("[^"+e.RegexLib.alphaNumericCharsStr+"]"),constructor:function(t){e.matcher.Matcher.prototype.constructor.call(this,t),this.serviceName=t.serviceName},parseMatches:function(t){var r,n=this.matcherRegexes[this.serviceName],a=this.nonWordCharRegex,i=this.serviceName,s=this.tagBuilder,o=[];if(!n)return o;for(;null!==(r=n.exec(t));){var c=r.index,h=t.charAt(c-1);if(0===c||a.test(h)){var l=r[0].replace(/\.+$/g,""),u=l.slice(1);o.push(new e.match.Mention({tagBuilder:s,matchedText:l,offset:c,serviceName:i,mention:u}))}}return o}}),e.matcher.Url=e.Util.extend(e.matcher.Matcher,{matcherRegex:function(){var t=/(?:[A-Za-z][-.+A-Za-z0-9]*:(?![A-Za-z][-.+A-Za-z0-9]*:\/\/)(?!\d+\/?)(?:\/\/)?)/,r=/(?:www\.)/,n=e.RegexLib.domainNameRegex,a=e.tldRegex,i=e.RegexLib.alphaNumericCharsStr,s=new RegExp("[/?#](?:["+i+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;✓]*["+i+"\\-+&@#/%=~_()|'$*\\[\\]✓])?");return new RegExp(["(?:","(",t.source,n.source,")","|","(","(//)?",r.source,n.source,")","|","(","(//)?",n.source+"\\.",a.source,"(?![-"+i+"])",")",")","(?::[0-9]+)?","(?:"+s.source+")?"].join(""),"gi")}(),wordCharRegExp:new RegExp("["+e.RegexLib.alphaNumericCharsStr+"]"),openParensRe:/\(/g,closeParensRe:/\)/g,constructor:function(t){e.matcher.Matcher.prototype.constructor.call(this,t),this.stripPrefix=t.stripPrefix,this.stripTrailingSlash=t.stripTrailingSlash,this.decodePercentEncoding=t.decodePercentEncoding},parseMatches:function(t){for(var r,n=this.matcherRegex,a=this.stripPrefix,i=this.stripTrailingSlash,s=this.decodePercentEncoding,o=this.tagBuilder,c=[];null!==(r=n.exec(t));){var h=r[0],l=r[1],u=r[2],g=r[3],m=r[5],f=r.index,d=g||m,p=t.charAt(f-1);if(e.matcher.UrlMatchValidator.isValid(h,l)&&!(f>0&&"@"===p||f>0&&d&&this.wordCharRegExp.test(p))){if(/\?$/.test(h)&&(h=h.substr(0,h.length-1)),this.matchHasUnbalancedClosingParen(h))h=h.substr(0,h.length-1);else{var x=this.matchHasInvalidCharAfterTld(h,l);x>-1&&(h=h.substr(0,x))}var b=l?"scheme":u?"www":"tld",v=!!l;c.push(new e.match.Url({tagBuilder:o,matchedText:h,offset:f,urlMatchType:b,url:h,protocolUrlMatch:v,protocolRelativeMatch:!!d,stripPrefix:a,stripTrailingSlash:i,decodePercentEncoding:s}))}}return c},matchHasUnbalancedClosingParen:function(e){var t=e.charAt(e.length-1);if(")"===t){var r=e.match(this.openParensRe),n=e.match(this.closeParensRe),a=r&&r.length||0,i=n&&n.length||0;if(a-1},isValidUriScheme:function(e){var t=e.match(this.uriSchemeRegex)[0].toLowerCase();return"javascript:"!==t&&"vbscript:"!==t},urlMatchDoesNotHaveProtocolOrDot:function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||e.indexOf(".")!==-1)},urlMatchDoesNotHaveAtLeastOneWordChar:function(e,t){return!(!e||!t)&&!this.hasWordCharAfterProtocolRegex.test(e)}},e.truncate.TruncateEnd=function(t,r,n){return e.Util.ellipsis(t,r,n)},e.truncate.TruncateMiddle=function(e,t,r){if(e.length<=t)return e;var n,a;null==r?(r="…",n=8,a=3):(n=r.length,a=r.length);var i=t-a,s="";return i>0&&(s=e.substr(-1*Math.floor(i/2))),(e.substr(0,Math.ceil(i/2))+r+s).substr(0,i+n)},e.truncate.TruncateSmart=function(e,t,r){var n,a;null==r?(r="…",a=3,n=8):(a=r.length,n=r.length);var i=function(e){var t={},r=e,n=r.match(/^([a-z]+):\/\//i);return n&&(t.scheme=n[1],r=r.substr(n[0].length)),n=r.match(/^(.*?)(?=(\?|#|\/|$))/i),n&&(t.host=n[1],r=r.substr(n[0].length)),n=r.match(/^\/(.*?)(?=(\?|#|$))/i),n&&(t.path=n[1],r=r.substr(n[0].length)),n=r.match(/^\?(.*?)(?=(#|$))/i),n&&(t.query=n[1],r=r.substr(n[0].length)),n=r.match(/^#(.*?)$/i),n&&(t.fragment=n[1]),t},s=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},o=function(e,t){var n=t/2,a=Math.ceil(n),i=-1*Math.floor(n),s="";return i<0&&(s=e.substr(i)),e.substr(0,a)+r+s};if(e.length<=t)return e;var c=t-a,h=i(e);if(h.query){var l=h.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);l&&(h.query=h.query.substr(0,l[1].length),e=s(h))}if(e.length<=t)return e;if(h.host&&(h.host=h.host.replace(/^www\./,""),e=s(h)),e.length<=t)return e;var u="";if(h.host&&(u+=h.host),u.length>=c)return h.host.length==t?(h.host.substr(0,t-a)+r).substr(0,c+n):o(u,c).substr(0,c+n);var g="";if(h.path&&(g+="/"+h.path),h.query&&(g+="?"+h.query),g){if((u+g).length>=c){if((u+g).length==t)return(u+g).substr(0,t);var m=c-u.length;return(u+o(g,m)).substr(0,c+n)}u+=g}if(h.fragment){var f="#"+h.fragment;if((u+f).length>=c){if((u+f).length==t)return(u+f).substr(0,t);var d=c-u.length;return(u+o(f,d)).substr(0,c+n)}u+=f}if(h.scheme&&h.host){var p=h.scheme+"://";if((u+p).length0&&(x=u.substr(-1*Math.floor(c/2))),(u.substr(0,Math.ceil(c/2))+r+x).substr(0,c+n)},e}); \ No newline at end of file diff --git a/docs/api/data-0cfafcc469bd1e77c3fc920bb1640cdf.js b/docs/api/data-0cfafcc469bd1e77c3fc920bb1640cdf.js deleted file mode 100644 index fd6e0d5d..00000000 --- a/docs/api/data-0cfafcc469bd1e77c3fc920bb1640cdf.js +++ /dev/null @@ -1 +0,0 @@ -Docs = {"data":{"classes":[{"name":"Autolinker.AnchorTagBuilder","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.HtmlTag","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.RegexLib","extends":null,"private":null,"icon":"icon-singleton"},{"name":"Autolinker.Util","extends":null,"private":null,"icon":"icon-singleton"},{"name":"Autolinker.match.Email","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.match.Hashtag","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.match.Match","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.match.Mention","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.match.Phone","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.match.Url","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.CommentNode","extends":"Autolinker.htmlParser.HtmlNode","private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.ElementNode","extends":"Autolinker.htmlParser.HtmlNode","private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.EntityNode","extends":"Autolinker.htmlParser.HtmlNode","private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.HtmlNode","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.HtmlParser","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.TextNode","extends":"Autolinker.htmlParser.HtmlNode","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Email","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Hashtag","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Matcher","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Mention","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Phone","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Url","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.UrlMatchValidator","extends":null,"private":true,"icon":"icon-singleton"},{"name":"Autolinker.truncate.TruncateEnd","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.truncate.TruncateMiddle","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.truncate.TruncateSmart","extends":null,"private":null,"icon":"icon-class"}],"guides":[],"videos":[],"examples":[{"title":"Examples","items":[{"name":"live-example","title":"Live Example","description":"Live example with input to test Autolinker functionality","url":"./docs/../../examples/live-example/index.html","icon":"./docs/live-example/live-example.gif","status":"new"}]}],"search":[{"name":"AnchorTagBuilder","fullName":"Autolinker.AnchorTagBuilder","icon":"icon-class","url":"#!/api/Autolinker.AnchorTagBuilder","meta":{"protected":true},"sort":1},{"name":"newWindow","fullName":"Autolinker.AnchorTagBuilder.newWindow","icon":"icon-cfg","url":"#!/api/Autolinker.AnchorTagBuilder-cfg-newWindow","meta":{},"sort":3},{"name":"truncate","fullName":"Autolinker.AnchorTagBuilder.truncate","icon":"icon-cfg","url":"#!/api/Autolinker.AnchorTagBuilder-cfg-truncate","meta":{},"sort":3},{"name":"className","fullName":"Autolinker.AnchorTagBuilder.className","icon":"icon-cfg","url":"#!/api/Autolinker.AnchorTagBuilder-cfg-className","meta":{},"sort":3},{"name":"build","fullName":"Autolinker.AnchorTagBuilder.build","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-build","meta":{},"sort":3},{"name":"createAttrs","fullName":"Autolinker.AnchorTagBuilder.createAttrs","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-createAttrs","meta":{"protected":true},"sort":3},{"name":"createCssClass","fullName":"Autolinker.AnchorTagBuilder.createCssClass","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-createCssClass","meta":{"private":true},"sort":3},{"name":"processAnchorText","fullName":"Autolinker.AnchorTagBuilder.processAnchorText","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-processAnchorText","meta":{"private":true},"sort":3},{"name":"doTruncate","fullName":"Autolinker.AnchorTagBuilder.doTruncate","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-doTruncate","meta":{"private":true},"sort":3},{"name":"Autolinker","fullName":"Autolinker","icon":"icon-class","url":"#!/api/Autolinker","meta":{},"sort":1},{"name":"link","fullName":"Autolinker.link","icon":"icon-method","url":"#!/api/Autolinker-static-method-link","meta":{"static":true},"sort":3},{"name":"parse","fullName":"Autolinker.parse","icon":"icon-method","url":"#!/api/Autolinker-static-method-parse","meta":{"static":true},"sort":3},{"name":"version","fullName":"Autolinker.version","icon":"icon-property","url":"#!/api/Autolinker-static-property-version","meta":{"static":true},"sort":3},{"name":"urls","fullName":"Autolinker.urls","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-urls","meta":{},"sort":3},{"name":"email","fullName":"Autolinker.email","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-email","meta":{},"sort":3},{"name":"phone","fullName":"Autolinker.phone","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-phone","meta":{},"sort":3},{"name":"hashtag","fullName":"Autolinker.hashtag","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-hashtag","meta":{},"sort":3},{"name":"mention","fullName":"Autolinker.mention","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-mention","meta":{},"sort":3},{"name":"newWindow","fullName":"Autolinker.newWindow","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-newWindow","meta":{},"sort":3},{"name":"stripPrefix","fullName":"Autolinker.stripPrefix","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-stripPrefix","meta":{},"sort":3},{"name":"stripTrailingSlash","fullName":"Autolinker.stripTrailingSlash","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-stripTrailingSlash","meta":{},"sort":3},{"name":"truncate","fullName":"Autolinker.truncate","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-truncate","meta":{},"sort":3},{"name":"className","fullName":"Autolinker.className","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-className","meta":{},"sort":3},{"name":"replaceFn","fullName":"Autolinker.replaceFn","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-replaceFn","meta":{},"sort":3},{"name":"context","fullName":"Autolinker.context","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-context","meta":{},"sort":3},{"name":"version","fullName":"Autolinker.version","icon":"icon-property","url":"#!/api/Autolinker-property-version","meta":{},"sort":3},{"name":"htmlParser","fullName":"Autolinker.htmlParser","icon":"icon-property","url":"#!/api/Autolinker-property-htmlParser","meta":{"private":true},"sort":3},{"name":"matchers","fullName":"Autolinker.matchers","icon":"icon-property","url":"#!/api/Autolinker-property-matchers","meta":{"private":true},"sort":3},{"name":"tagBuilder","fullName":"Autolinker.tagBuilder","icon":"icon-property","url":"#!/api/Autolinker-property-tagBuilder","meta":{"private":true},"sort":3},{"name":"normalizeUrlsCfg","fullName":"Autolinker.normalizeUrlsCfg","icon":"icon-method","url":"#!/api/Autolinker-method-normalizeUrlsCfg","meta":{"private":true},"sort":3},{"name":"normalizeStripPrefixCfg","fullName":"Autolinker.normalizeStripPrefixCfg","icon":"icon-method","url":"#!/api/Autolinker-method-normalizeStripPrefixCfg","meta":{"private":true},"sort":3},{"name":"normalizeTruncateCfg","fullName":"Autolinker.normalizeTruncateCfg","icon":"icon-method","url":"#!/api/Autolinker-method-normalizeTruncateCfg","meta":{"private":true},"sort":3},{"name":"parse","fullName":"Autolinker.parse","icon":"icon-method","url":"#!/api/Autolinker-method-parse","meta":{},"sort":3},{"name":"compactMatches","fullName":"Autolinker.compactMatches","icon":"icon-method","url":"#!/api/Autolinker-method-compactMatches","meta":{"private":true},"sort":3},{"name":"removeUnwantedMatches","fullName":"Autolinker.removeUnwantedMatches","icon":"icon-method","url":"#!/api/Autolinker-method-removeUnwantedMatches","meta":{"private":true},"sort":3},{"name":"parseText","fullName":"Autolinker.parseText","icon":"icon-method","url":"#!/api/Autolinker-method-parseText","meta":{"private":true},"sort":3},{"name":"link","fullName":"Autolinker.link","icon":"icon-method","url":"#!/api/Autolinker-method-link","meta":{},"sort":3},{"name":"createMatchReturnVal","fullName":"Autolinker.createMatchReturnVal","icon":"icon-method","url":"#!/api/Autolinker-method-createMatchReturnVal","meta":{"private":true},"sort":3},{"name":"getHtmlParser","fullName":"Autolinker.getHtmlParser","icon":"icon-method","url":"#!/api/Autolinker-method-getHtmlParser","meta":{"protected":true},"sort":3},{"name":"getMatchers","fullName":"Autolinker.getMatchers","icon":"icon-method","url":"#!/api/Autolinker-method-getMatchers","meta":{"protected":true},"sort":3},{"name":"getTagBuilder","fullName":"Autolinker.getTagBuilder","icon":"icon-method","url":"#!/api/Autolinker-method-getTagBuilder","meta":{},"sort":3},{"name":"HtmlTag","fullName":"Autolinker.HtmlTag","icon":"icon-class","url":"#!/api/Autolinker.HtmlTag","meta":{},"sort":1},{"name":"tagName","fullName":"Autolinker.HtmlTag.tagName","icon":"icon-cfg","url":"#!/api/Autolinker.HtmlTag-cfg-tagName","meta":{},"sort":3},{"name":"attrs","fullName":"Autolinker.HtmlTag.attrs","icon":"icon-cfg","url":"#!/api/Autolinker.HtmlTag-cfg-attrs","meta":{},"sort":3},{"name":"innerHtml","fullName":"Autolinker.HtmlTag.innerHtml","icon":"icon-cfg","url":"#!/api/Autolinker.HtmlTag-cfg-innerHtml","meta":{},"sort":3},{"name":"innerHTML","fullName":"Autolinker.HtmlTag.innerHTML","icon":"icon-cfg","url":"#!/api/Autolinker.HtmlTag-cfg-innerHTML","meta":{},"sort":3},{"name":"whitespaceRegex","fullName":"Autolinker.HtmlTag.whitespaceRegex","icon":"icon-property","url":"#!/api/Autolinker.HtmlTag-property-whitespaceRegex","meta":{"protected":true},"sort":3},{"name":"setTagName","fullName":"Autolinker.HtmlTag.setTagName","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setTagName","meta":{"chainable":true},"sort":3},{"name":"getTagName","fullName":"Autolinker.HtmlTag.getTagName","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getTagName","meta":{},"sort":3},{"name":"setAttr","fullName":"Autolinker.HtmlTag.setAttr","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setAttr","meta":{"chainable":true},"sort":3},{"name":"getAttr","fullName":"Autolinker.HtmlTag.getAttr","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getAttr","meta":{},"sort":3},{"name":"setAttrs","fullName":"Autolinker.HtmlTag.setAttrs","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setAttrs","meta":{"chainable":true},"sort":3},{"name":"getAttrs","fullName":"Autolinker.HtmlTag.getAttrs","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getAttrs","meta":{},"sort":3},{"name":"setClass","fullName":"Autolinker.HtmlTag.setClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setClass","meta":{},"sort":3},{"name":"addClass","fullName":"Autolinker.HtmlTag.addClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-addClass","meta":{"chainable":true},"sort":3},{"name":"removeClass","fullName":"Autolinker.HtmlTag.removeClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-removeClass","meta":{"chainable":true},"sort":3},{"name":"getClass","fullName":"Autolinker.HtmlTag.getClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getClass","meta":{},"sort":3},{"name":"hasClass","fullName":"Autolinker.HtmlTag.hasClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-hasClass","meta":{},"sort":3},{"name":"setInnerHtml","fullName":"Autolinker.HtmlTag.setInnerHtml","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setInnerHtml","meta":{"chainable":true},"sort":3},{"name":"getInnerHtml","fullName":"Autolinker.HtmlTag.getInnerHtml","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getInnerHtml","meta":{},"sort":3},{"name":"toAnchorString","fullName":"Autolinker.HtmlTag.toAnchorString","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-toAnchorString","meta":{},"sort":3},{"name":"buildAttrsStr","fullName":"Autolinker.HtmlTag.buildAttrsStr","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-buildAttrsStr","meta":{"protected":true},"sort":3},{"name":"RegexLib","fullName":"Autolinker.RegexLib","icon":"icon-singleton","url":"#!/api/Autolinker.RegexLib","meta":{},"sort":1},{"name":"alphaCharsStr","fullName":"Autolinker.RegexLib.alphaCharsStr","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-alphaCharsStr","meta":{"private":true},"sort":3},{"name":"decimalNumbersStr","fullName":"Autolinker.RegexLib.decimalNumbersStr","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-decimalNumbersStr","meta":{"private":true},"sort":3},{"name":"alphaNumericCharsStr","fullName":"Autolinker.RegexLib.alphaNumericCharsStr","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-alphaNumericCharsStr","meta":{},"sort":3},{"name":"alphaCharsStr","fullName":"Autolinker.RegexLib.alphaCharsStr","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-alphaCharsStr","meta":{},"sort":3},{"name":"domainNameRegex","fullName":"Autolinker.RegexLib.domainNameRegex","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-domainNameRegex","meta":{},"sort":3},{"name":"Util","fullName":"Autolinker.Util","icon":"icon-singleton","url":"#!/api/Autolinker.Util","meta":{},"sort":1},{"name":"abstractMethod","fullName":"Autolinker.Util.abstractMethod","icon":"icon-property","url":"#!/api/Autolinker.Util-property-abstractMethod","meta":{},"sort":3},{"name":"trimRegex","fullName":"Autolinker.Util.trimRegex","icon":"icon-property","url":"#!/api/Autolinker.Util-property-trimRegex","meta":{"private":true},"sort":3},{"name":"assign","fullName":"Autolinker.Util.assign","icon":"icon-method","url":"#!/api/Autolinker.Util-method-assign","meta":{},"sort":3},{"name":"defaults","fullName":"Autolinker.Util.defaults","icon":"icon-method","url":"#!/api/Autolinker.Util-method-defaults","meta":{},"sort":3},{"name":"extend","fullName":"Autolinker.Util.extend","icon":"icon-method","url":"#!/api/Autolinker.Util-method-extend","meta":{},"sort":3},{"name":"ellipsis","fullName":"Autolinker.Util.ellipsis","icon":"icon-method","url":"#!/api/Autolinker.Util-method-ellipsis","meta":{},"sort":3},{"name":"indexOf","fullName":"Autolinker.Util.indexOf","icon":"icon-method","url":"#!/api/Autolinker.Util-method-indexOf","meta":{},"sort":3},{"name":"remove","fullName":"Autolinker.Util.remove","icon":"icon-method","url":"#!/api/Autolinker.Util-method-remove","meta":{},"sort":3},{"name":"splitAndCapture","fullName":"Autolinker.Util.splitAndCapture","icon":"icon-method","url":"#!/api/Autolinker.Util-method-splitAndCapture","meta":{},"sort":3},{"name":"trim","fullName":"Autolinker.Util.trim","icon":"icon-method","url":"#!/api/Autolinker.Util-method-trim","meta":{},"sort":3},{"name":"Email","fullName":"Autolinker.match.Email","icon":"icon-class","url":"#!/api/Autolinker.match.Email","meta":{},"sort":1},{"name":"email","fullName":"Autolinker.match.Email.email","icon":"icon-cfg","url":"#!/api/Autolinker.match.Email-cfg-email","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Email.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Email-method-getType","meta":{},"sort":3},{"name":"getEmail","fullName":"Autolinker.match.Email.getEmail","icon":"icon-method","url":"#!/api/Autolinker.match.Email-method-getEmail","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Email.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Email-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Email.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Email-method-getAnchorText","meta":{},"sort":3},{"name":"Hashtag","fullName":"Autolinker.match.Hashtag","icon":"icon-class","url":"#!/api/Autolinker.match.Hashtag","meta":{},"sort":1},{"name":"serviceName","fullName":"Autolinker.match.Hashtag.serviceName","icon":"icon-cfg","url":"#!/api/Autolinker.match.Hashtag-cfg-serviceName","meta":{},"sort":3},{"name":"hashtag","fullName":"Autolinker.match.Hashtag.hashtag","icon":"icon-cfg","url":"#!/api/Autolinker.match.Hashtag-cfg-hashtag","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Hashtag.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getType","meta":{},"sort":3},{"name":"getServiceName","fullName":"Autolinker.match.Hashtag.getServiceName","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getServiceName","meta":{},"sort":3},{"name":"getHashtag","fullName":"Autolinker.match.Hashtag.getHashtag","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getHashtag","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Hashtag.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Hashtag.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getAnchorText","meta":{},"sort":3},{"name":"Match","fullName":"Autolinker.match.Match","icon":"icon-class","url":"#!/api/Autolinker.match.Match","meta":{"abstract":true},"sort":1},{"name":"tagBuilder","fullName":"Autolinker.match.Match.tagBuilder","icon":"icon-cfg","url":"#!/api/Autolinker.match.Match-cfg-tagBuilder","meta":{"required":true},"sort":3},{"name":"matchedText","fullName":"Autolinker.match.Match.matchedText","icon":"icon-cfg","url":"#!/api/Autolinker.match.Match-cfg-matchedText","meta":{"required":true},"sort":3},{"name":"offset","fullName":"Autolinker.match.Match.offset","icon":"icon-cfg","url":"#!/api/Autolinker.match.Match-cfg-offset","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Match.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getType","meta":{"abstract":true},"sort":3},{"name":"getMatchedText","fullName":"Autolinker.match.Match.getMatchedText","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getMatchedText","meta":{},"sort":3},{"name":"setOffset","fullName":"Autolinker.match.Match.setOffset","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-setOffset","meta":{},"sort":3},{"name":"getOffset","fullName":"Autolinker.match.Match.getOffset","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getOffset","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Match.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getAnchorHref","meta":{"abstract":true},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Match.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getAnchorText","meta":{"abstract":true},"sort":3},{"name":"getCssClassSuffixes","fullName":"Autolinker.match.Match.getCssClassSuffixes","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getCssClassSuffixes","meta":{},"sort":3},{"name":"buildTag","fullName":"Autolinker.match.Match.buildTag","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-buildTag","meta":{},"sort":3},{"name":"Mention","fullName":"Autolinker.match.Mention","icon":"icon-class","url":"#!/api/Autolinker.match.Mention","meta":{},"sort":1},{"name":"serviceName","fullName":"Autolinker.match.Mention.serviceName","icon":"icon-cfg","url":"#!/api/Autolinker.match.Mention-cfg-serviceName","meta":{},"sort":3},{"name":"mention","fullName":"Autolinker.match.Mention.mention","icon":"icon-cfg","url":"#!/api/Autolinker.match.Mention-cfg-mention","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Mention.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getType","meta":{},"sort":3},{"name":"getMention","fullName":"Autolinker.match.Mention.getMention","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getMention","meta":{},"sort":3},{"name":"getServiceName","fullName":"Autolinker.match.Mention.getServiceName","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getServiceName","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Mention.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Mention.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getAnchorText","meta":{},"sort":3},{"name":"getCssClassSuffixes","fullName":"Autolinker.match.Mention.getCssClassSuffixes","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getCssClassSuffixes","meta":{},"sort":3},{"name":"Phone","fullName":"Autolinker.match.Phone","icon":"icon-class","url":"#!/api/Autolinker.match.Phone","meta":{},"sort":1},{"name":"number","fullName":"Autolinker.match.Phone.number","icon":"icon-property","url":"#!/api/Autolinker.match.Phone-property-number","meta":{"protected":true},"sort":3},{"name":"plusSign","fullName":"Autolinker.match.Phone.plusSign","icon":"icon-property","url":"#!/api/Autolinker.match.Phone-property-plusSign","meta":{"protected":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Phone.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Phone-method-getType","meta":{},"sort":3},{"name":"getNumber","fullName":"Autolinker.match.Phone.getNumber","icon":"icon-method","url":"#!/api/Autolinker.match.Phone-method-getNumber","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Phone.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Phone-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Phone.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Phone-method-getAnchorText","meta":{},"sort":3},{"name":"Url","fullName":"Autolinker.match.Url","icon":"icon-class","url":"#!/api/Autolinker.match.Url","meta":{},"sort":1},{"name":"url","fullName":"Autolinker.match.Url.url","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-url","meta":{"required":true},"sort":3},{"name":"urlMatchType","fullName":"Autolinker.match.Url.urlMatchType","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-urlMatchType","meta":{"required":true},"sort":3},{"name":"protocolUrlMatch","fullName":"Autolinker.match.Url.protocolUrlMatch","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-protocolUrlMatch","meta":{"required":true},"sort":3},{"name":"protocolRelativeMatch","fullName":"Autolinker.match.Url.protocolRelativeMatch","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-protocolRelativeMatch","meta":{"required":true},"sort":3},{"name":"stripPrefix","fullName":"Autolinker.match.Url.stripPrefix","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-stripPrefix","meta":{"required":true},"sort":3},{"name":"stripTrailingSlash","fullName":"Autolinker.match.Url.stripTrailingSlash","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-stripTrailingSlash","meta":{"required":true},"sort":3},{"name":"schemePrefixRegex","fullName":"Autolinker.match.Url.schemePrefixRegex","icon":"icon-property","url":"#!/api/Autolinker.match.Url-property-schemePrefixRegex","meta":{"private":true},"sort":3},{"name":"wwwPrefixRegex","fullName":"Autolinker.match.Url.wwwPrefixRegex","icon":"icon-property","url":"#!/api/Autolinker.match.Url-property-wwwPrefixRegex","meta":{"private":true},"sort":3},{"name":"protocolRelativeRegex","fullName":"Autolinker.match.Url.protocolRelativeRegex","icon":"icon-property","url":"#!/api/Autolinker.match.Url-property-protocolRelativeRegex","meta":{"private":true},"sort":3},{"name":"protocolPrepended","fullName":"Autolinker.match.Url.protocolPrepended","icon":"icon-property","url":"#!/api/Autolinker.match.Url-property-protocolPrepended","meta":{"private":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Url.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getType","meta":{},"sort":3},{"name":"getUrlMatchType","fullName":"Autolinker.match.Url.getUrlMatchType","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getUrlMatchType","meta":{},"sort":3},{"name":"getUrl","fullName":"Autolinker.match.Url.getUrl","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getUrl","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Url.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Url.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getAnchorText","meta":{},"sort":3},{"name":"stripSchemePrefix","fullName":"Autolinker.match.Url.stripSchemePrefix","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-stripSchemePrefix","meta":{"private":true},"sort":3},{"name":"stripWwwPrefix","fullName":"Autolinker.match.Url.stripWwwPrefix","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-stripWwwPrefix","meta":{"private":true},"sort":3},{"name":"stripProtocolRelativePrefix","fullName":"Autolinker.match.Url.stripProtocolRelativePrefix","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-stripProtocolRelativePrefix","meta":{"private":true},"sort":3},{"name":"removeTrailingSlash","fullName":"Autolinker.match.Url.removeTrailingSlash","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-removeTrailingSlash","meta":{"private":true},"sort":3},{"name":"CommentNode","fullName":"Autolinker.htmlParser.CommentNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.CommentNode","meta":{},"sort":1},{"name":"comment","fullName":"Autolinker.htmlParser.CommentNode.comment","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.CommentNode-cfg-comment","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.htmlParser.CommentNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.CommentNode-method-getType","meta":{},"sort":3},{"name":"getComment","fullName":"Autolinker.htmlParser.CommentNode.getComment","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.CommentNode-method-getComment","meta":{},"sort":3},{"name":"ElementNode","fullName":"Autolinker.htmlParser.ElementNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.ElementNode","meta":{},"sort":1},{"name":"tagName","fullName":"Autolinker.htmlParser.ElementNode.tagName","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.ElementNode-cfg-tagName","meta":{"required":true},"sort":3},{"name":"closing","fullName":"Autolinker.htmlParser.ElementNode.closing","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.ElementNode-cfg-closing","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.htmlParser.ElementNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.ElementNode-method-getType","meta":{},"sort":3},{"name":"getTagName","fullName":"Autolinker.htmlParser.ElementNode.getTagName","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.ElementNode-method-getTagName","meta":{},"sort":3},{"name":"isClosing","fullName":"Autolinker.htmlParser.ElementNode.isClosing","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.ElementNode-method-isClosing","meta":{},"sort":3},{"name":"EntityNode","fullName":"Autolinker.htmlParser.EntityNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.EntityNode","meta":{},"sort":1},{"name":"getType","fullName":"Autolinker.htmlParser.EntityNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.EntityNode-method-getType","meta":{},"sort":3},{"name":"HtmlNode","fullName":"Autolinker.htmlParser.HtmlNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.HtmlNode","meta":{"abstract":true},"sort":1},{"name":"offset","fullName":"Autolinker.htmlParser.HtmlNode.offset","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.HtmlNode-cfg-offset","meta":{"required":true},"sort":3},{"name":"text","fullName":"Autolinker.htmlParser.HtmlNode.text","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.HtmlNode-cfg-text","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.htmlParser.HtmlNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlNode-method-getType","meta":{"abstract":true},"sort":3},{"name":"getOffset","fullName":"Autolinker.htmlParser.HtmlNode.getOffset","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlNode-method-getOffset","meta":{},"sort":3},{"name":"getText","fullName":"Autolinker.htmlParser.HtmlNode.getText","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlNode-method-getText","meta":{},"sort":3},{"name":"HtmlParser","fullName":"Autolinker.htmlParser.HtmlParser","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.HtmlParser","meta":{},"sort":1},{"name":"htmlRegex","fullName":"Autolinker.htmlParser.HtmlParser.htmlRegex","icon":"icon-property","url":"#!/api/Autolinker.htmlParser.HtmlParser-property-htmlRegex","meta":{"private":true},"sort":3},{"name":"htmlCharacterEntitiesRegex","fullName":"Autolinker.htmlParser.HtmlParser.htmlCharacterEntitiesRegex","icon":"icon-property","url":"#!/api/Autolinker.htmlParser.HtmlParser-property-htmlCharacterEntitiesRegex","meta":{"private":true},"sort":3},{"name":"parse","fullName":"Autolinker.htmlParser.HtmlParser.parse","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-parse","meta":{},"sort":3},{"name":"parseTextAndEntityNodes","fullName":"Autolinker.htmlParser.HtmlParser.parseTextAndEntityNodes","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-parseTextAndEntityNodes","meta":{"private":true},"sort":3},{"name":"createCommentNode","fullName":"Autolinker.htmlParser.HtmlParser.createCommentNode","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-createCommentNode","meta":{"private":true},"sort":3},{"name":"createElementNode","fullName":"Autolinker.htmlParser.HtmlParser.createElementNode","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-createElementNode","meta":{"private":true},"sort":3},{"name":"createEntityNode","fullName":"Autolinker.htmlParser.HtmlParser.createEntityNode","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-createEntityNode","meta":{"private":true},"sort":3},{"name":"createTextNode","fullName":"Autolinker.htmlParser.HtmlParser.createTextNode","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-createTextNode","meta":{"private":true},"sort":3},{"name":"TextNode","fullName":"Autolinker.htmlParser.TextNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.TextNode","meta":{},"sort":1},{"name":"getType","fullName":"Autolinker.htmlParser.TextNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.TextNode-method-getType","meta":{},"sort":3},{"name":"Email","fullName":"Autolinker.matcher.Email","icon":"icon-class","url":"#!/api/Autolinker.matcher.Email","meta":{},"sort":1},{"name":"matcherRegex","fullName":"Autolinker.matcher.Email.matcherRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Email-property-matcherRegex","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Email.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Email-method-parseMatches","meta":{},"sort":3},{"name":"Hashtag","fullName":"Autolinker.matcher.Hashtag","icon":"icon-class","url":"#!/api/Autolinker.matcher.Hashtag","meta":{},"sort":1},{"name":"serviceName","fullName":"Autolinker.matcher.Hashtag.serviceName","icon":"icon-cfg","url":"#!/api/Autolinker.matcher.Hashtag-cfg-serviceName","meta":{},"sort":3},{"name":"matcherRegex","fullName":"Autolinker.matcher.Hashtag.matcherRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Hashtag-property-matcherRegex","meta":{"private":true},"sort":3},{"name":"nonWordCharRegex","fullName":"Autolinker.matcher.Hashtag.nonWordCharRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Hashtag-property-nonWordCharRegex","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Hashtag.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Hashtag-method-parseMatches","meta":{},"sort":3},{"name":"Matcher","fullName":"Autolinker.matcher.Matcher","icon":"icon-class","url":"#!/api/Autolinker.matcher.Matcher","meta":{"abstract":true},"sort":1},{"name":"tagBuilder","fullName":"Autolinker.matcher.Matcher.tagBuilder","icon":"icon-cfg","url":"#!/api/Autolinker.matcher.Matcher-cfg-tagBuilder","meta":{"required":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Matcher.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Matcher-method-parseMatches","meta":{"abstract":true},"sort":3},{"name":"Mention","fullName":"Autolinker.matcher.Mention","icon":"icon-class","url":"#!/api/Autolinker.matcher.Mention","meta":{},"sort":1},{"name":"matcherRegexes","fullName":"Autolinker.matcher.Mention.matcherRegexes","icon":"icon-property","url":"#!/api/Autolinker.matcher.Mention-property-matcherRegexes","meta":{"private":true},"sort":3},{"name":"nonWordCharRegex","fullName":"Autolinker.matcher.Mention.nonWordCharRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Mention-property-nonWordCharRegex","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Mention.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Mention-method-parseMatches","meta":{},"sort":3},{"name":"Phone","fullName":"Autolinker.matcher.Phone","icon":"icon-class","url":"#!/api/Autolinker.matcher.Phone","meta":{},"sort":1},{"name":"matcherRegex","fullName":"Autolinker.matcher.Phone.matcherRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Phone-property-matcherRegex","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Phone.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Phone-method-parseMatches","meta":{},"sort":3},{"name":"Url","fullName":"Autolinker.matcher.Url","icon":"icon-class","url":"#!/api/Autolinker.matcher.Url","meta":{},"sort":1},{"name":"stripPrefix","fullName":"Autolinker.matcher.Url.stripPrefix","icon":"icon-cfg","url":"#!/api/Autolinker.matcher.Url-cfg-stripPrefix","meta":{"required":true},"sort":3},{"name":"stripTrailingSlash","fullName":"Autolinker.matcher.Url.stripTrailingSlash","icon":"icon-cfg","url":"#!/api/Autolinker.matcher.Url-cfg-stripTrailingSlash","meta":{"required":true},"sort":3},{"name":"matcherRegex","fullName":"Autolinker.matcher.Url.matcherRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Url-property-matcherRegex","meta":{"private":true},"sort":3},{"name":"wordCharRegExp","fullName":"Autolinker.matcher.Url.wordCharRegExp","icon":"icon-property","url":"#!/api/Autolinker.matcher.Url-property-wordCharRegExp","meta":{"private":true},"sort":3},{"name":"openParensRe","fullName":"Autolinker.matcher.Url.openParensRe","icon":"icon-property","url":"#!/api/Autolinker.matcher.Url-property-openParensRe","meta":{"private":true},"sort":3},{"name":"closeParensRe","fullName":"Autolinker.matcher.Url.closeParensRe","icon":"icon-property","url":"#!/api/Autolinker.matcher.Url-property-closeParensRe","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Url.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Url-method-parseMatches","meta":{},"sort":3},{"name":"matchHasUnbalancedClosingParen","fullName":"Autolinker.matcher.Url.matchHasUnbalancedClosingParen","icon":"icon-method","url":"#!/api/Autolinker.matcher.Url-method-matchHasUnbalancedClosingParen","meta":{"private":true},"sort":3},{"name":"matchHasInvalidCharAfterTld","fullName":"Autolinker.matcher.Url.matchHasInvalidCharAfterTld","icon":"icon-method","url":"#!/api/Autolinker.matcher.Url-method-matchHasInvalidCharAfterTld","meta":{"private":true},"sort":3},{"name":"UrlMatchValidator","fullName":"Autolinker.matcher.UrlMatchValidator","icon":"icon-singleton","url":"#!/api/Autolinker.matcher.UrlMatchValidator","meta":{"private":true},"sort":1},{"name":"isValidIpAddress","fullName":"Autolinker.matcher.UrlMatchValidator.isValidIpAddress","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-isValidIpAddress","meta":{"private":true},"sort":3},{"name":"containsMultipleDots","fullName":"Autolinker.matcher.UrlMatchValidator.containsMultipleDots","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-containsMultipleDots","meta":{"private":true},"sort":3},{"name":"hasFullProtocolRegex","fullName":"Autolinker.matcher.UrlMatchValidator.hasFullProtocolRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.UrlMatchValidator-property-hasFullProtocolRegex","meta":{"private":true},"sort":3},{"name":"uriSchemeRegex","fullName":"Autolinker.matcher.UrlMatchValidator.uriSchemeRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.UrlMatchValidator-property-uriSchemeRegex","meta":{"private":true},"sort":3},{"name":"hasWordCharAfterProtocolRegex","fullName":"Autolinker.matcher.UrlMatchValidator.hasWordCharAfterProtocolRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.UrlMatchValidator-property-hasWordCharAfterProtocolRegex","meta":{"private":true},"sort":3},{"name":"ipRegex","fullName":"Autolinker.matcher.UrlMatchValidator.ipRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.UrlMatchValidator-property-ipRegex","meta":{"private":true},"sort":3},{"name":"isValid","fullName":"Autolinker.matcher.UrlMatchValidator.isValid","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-isValid","meta":{},"sort":3},{"name":"isValidUriScheme","fullName":"Autolinker.matcher.UrlMatchValidator.isValidUriScheme","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-isValidUriScheme","meta":{"private":true},"sort":3},{"name":"urlMatchDoesNotHaveProtocolOrDot","fullName":"Autolinker.matcher.UrlMatchValidator.urlMatchDoesNotHaveProtocolOrDot","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-urlMatchDoesNotHaveProtocolOrDot","meta":{"private":true},"sort":3},{"name":"urlMatchDoesNotHaveAtLeastOneWordChar","fullName":"Autolinker.matcher.UrlMatchValidator.urlMatchDoesNotHaveAtLeastOneWordChar","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-urlMatchDoesNotHaveAtLeastOneWordChar","meta":{"private":true},"sort":3},{"name":"TruncateEnd","fullName":"Autolinker.truncate.TruncateEnd","icon":"icon-class","url":"#!/api/Autolinker.truncate.TruncateEnd","meta":{},"sort":1},{"name":"TruncateMiddle","fullName":"Autolinker.truncate.TruncateMiddle","icon":"icon-class","url":"#!/api/Autolinker.truncate.TruncateMiddle","meta":{},"sort":1},{"name":"TruncateSmart","fullName":"Autolinker.truncate.TruncateSmart","icon":"icon-class","url":"#!/api/Autolinker.truncate.TruncateSmart","meta":{},"sort":1},{"name":"Live Example","fullName":"example: Live Example","icon":"icon-example","url":"#!/example/live-example","meta":{},"sort":4}],"guideSearch":{},"tests":false,"signatures":[{"long":"abstract","short":"ABS","tagname":"abstract"},{"long":"chainable","short":">","tagname":"chainable"},{"long":"deprecated","short":"DEP","tagname":"deprecated"},{"long":"experimental","short":"EXP","tagname":"experimental"},{"long":"★","short":"★","tagname":"new"},{"long":"preventable","short":"PREV","tagname":"preventable"},{"long":"private","short":"PRI","tagname":"private"},{"long":"protected","short":"PRO","tagname":"protected"},{"long":"readonly","short":"R O","tagname":"readonly"},{"long":"removed","short":"REM","tagname":"removed"},{"long":"required","short":"REQ","tagname":"required"},{"long":"static","short":"STA","tagname":"static"},{"long":"template","short":"TMP","tagname":"template"}],"memberTypes":[{"title":"Config options","toolbar_title":"Configs","position":1,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/cfg.png","subsections":[{"title":"Required config options","filter":{"required":true}},{"title":"Optional config options","filter":{"required":false},"default":true}],"name":"cfg"},{"title":"Properties","position":2,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/property.png","subsections":[{"title":"Instance properties","filter":{"static":false},"default":true},{"title":"Static properties","filter":{"static":true}}],"name":"property"},{"title":"Methods","position":3,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/method.png","subsections":[{"title":"Instance methods","filter":{"static":false},"default":true},{"title":"Static methods","filter":{"static":true}}],"name":"method"},{"title":"Events","position":4,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/event.png","name":"event"},{"title":"CSS Variables","toolbar_title":"CSS Vars","position":5,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/css_var.png","name":"css_var"},{"title":"CSS Mixins","position":6,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/css_mixin.png","name":"css_mixin"}],"localStorageDb":"docs","showPrintButton":false,"touchExamplesUi":false,"source":true,"commentsUrl":null,"commentsDomain":null,"message":""}}; diff --git a/docs/api/data-f36136e80946f52beafafdcdfb2138d1.js b/docs/api/data-f36136e80946f52beafafdcdfb2138d1.js new file mode 100644 index 00000000..70fe085d --- /dev/null +++ b/docs/api/data-f36136e80946f52beafafdcdfb2138d1.js @@ -0,0 +1 @@ +Docs = {"data":{"classes":[{"name":"Autolinker.AnchorTagBuilder","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.HtmlTag","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.RegexLib","extends":null,"private":null,"icon":"icon-singleton"},{"name":"Autolinker.Util","extends":null,"private":null,"icon":"icon-singleton"},{"name":"Autolinker.htmlParser.CommentNode","extends":"Autolinker.htmlParser.HtmlNode","private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.ElementNode","extends":"Autolinker.htmlParser.HtmlNode","private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.EntityNode","extends":"Autolinker.htmlParser.HtmlNode","private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.HtmlNode","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.HtmlParser","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.htmlParser.TextNode","extends":"Autolinker.htmlParser.HtmlNode","private":null,"icon":"icon-class"},{"name":"Autolinker.match.Email","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.match.Hashtag","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.match.Match","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.match.Mention","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.match.Phone","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.match.Url","extends":"Autolinker.match.Match","private":null,"icon":"icon-class"},{"name":"Autolinker.truncate.TruncateEnd","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.truncate.TruncateMiddle","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.truncate.TruncateSmart","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Email","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Hashtag","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Matcher","extends":null,"private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Mention","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Phone","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.Url","extends":"Autolinker.matcher.Matcher","private":null,"icon":"icon-class"},{"name":"Autolinker.matcher.UrlMatchValidator","extends":null,"private":true,"icon":"icon-singleton"}],"guides":[],"videos":[],"examples":[{"title":"Examples","items":[{"name":"live-example","title":"Live Example","description":"Live example with input to test Autolinker functionality","url":"./docs/../../examples/live-example/index.html","icon":"./docs/live-example/live-example.gif","status":"new"}]}],"search":[{"name":"AnchorTagBuilder","fullName":"Autolinker.AnchorTagBuilder","icon":"icon-class","url":"#!/api/Autolinker.AnchorTagBuilder","meta":{"protected":true},"sort":1},{"name":"newWindow","fullName":"Autolinker.AnchorTagBuilder.newWindow","icon":"icon-cfg","url":"#!/api/Autolinker.AnchorTagBuilder-cfg-newWindow","meta":{},"sort":3},{"name":"truncate","fullName":"Autolinker.AnchorTagBuilder.truncate","icon":"icon-cfg","url":"#!/api/Autolinker.AnchorTagBuilder-cfg-truncate","meta":{},"sort":3},{"name":"className","fullName":"Autolinker.AnchorTagBuilder.className","icon":"icon-cfg","url":"#!/api/Autolinker.AnchorTagBuilder-cfg-className","meta":{},"sort":3},{"name":"build","fullName":"Autolinker.AnchorTagBuilder.build","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-build","meta":{},"sort":3},{"name":"createAttrs","fullName":"Autolinker.AnchorTagBuilder.createAttrs","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-createAttrs","meta":{"protected":true},"sort":3},{"name":"createCssClass","fullName":"Autolinker.AnchorTagBuilder.createCssClass","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-createCssClass","meta":{"private":true},"sort":3},{"name":"processAnchorText","fullName":"Autolinker.AnchorTagBuilder.processAnchorText","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-processAnchorText","meta":{"private":true},"sort":3},{"name":"doTruncate","fullName":"Autolinker.AnchorTagBuilder.doTruncate","icon":"icon-method","url":"#!/api/Autolinker.AnchorTagBuilder-method-doTruncate","meta":{"private":true},"sort":3},{"name":"Autolinker","fullName":"Autolinker","icon":"icon-class","url":"#!/api/Autolinker","meta":{},"sort":1},{"name":"link","fullName":"Autolinker.link","icon":"icon-method","url":"#!/api/Autolinker-static-method-link","meta":{"static":true},"sort":3},{"name":"parse","fullName":"Autolinker.parse","icon":"icon-method","url":"#!/api/Autolinker-static-method-parse","meta":{"static":true},"sort":3},{"name":"version","fullName":"Autolinker.version","icon":"icon-property","url":"#!/api/Autolinker-static-property-version","meta":{"static":true},"sort":3},{"name":"urls","fullName":"Autolinker.urls","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-urls","meta":{},"sort":3},{"name":"email","fullName":"Autolinker.email","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-email","meta":{},"sort":3},{"name":"phone","fullName":"Autolinker.phone","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-phone","meta":{},"sort":3},{"name":"hashtag","fullName":"Autolinker.hashtag","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-hashtag","meta":{},"sort":3},{"name":"mention","fullName":"Autolinker.mention","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-mention","meta":{},"sort":3},{"name":"newWindow","fullName":"Autolinker.newWindow","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-newWindow","meta":{},"sort":3},{"name":"stripPrefix","fullName":"Autolinker.stripPrefix","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-stripPrefix","meta":{},"sort":3},{"name":"stripTrailingSlash","fullName":"Autolinker.stripTrailingSlash","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-stripTrailingSlash","meta":{},"sort":3},{"name":"decodePercentEncoding","fullName":"Autolinker.decodePercentEncoding","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-decodePercentEncoding","meta":{},"sort":3},{"name":"truncate","fullName":"Autolinker.truncate","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-truncate","meta":{},"sort":3},{"name":"className","fullName":"Autolinker.className","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-className","meta":{},"sort":3},{"name":"replaceFn","fullName":"Autolinker.replaceFn","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-replaceFn","meta":{},"sort":3},{"name":"context","fullName":"Autolinker.context","icon":"icon-cfg","url":"#!/api/Autolinker-cfg-context","meta":{},"sort":3},{"name":"version","fullName":"Autolinker.version","icon":"icon-property","url":"#!/api/Autolinker-property-version","meta":{},"sort":3},{"name":"htmlParser","fullName":"Autolinker.htmlParser","icon":"icon-property","url":"#!/api/Autolinker-property-htmlParser","meta":{"private":true},"sort":3},{"name":"matchers","fullName":"Autolinker.matchers","icon":"icon-property","url":"#!/api/Autolinker-property-matchers","meta":{"private":true},"sort":3},{"name":"tagBuilder","fullName":"Autolinker.tagBuilder","icon":"icon-property","url":"#!/api/Autolinker-property-tagBuilder","meta":{"private":true},"sort":3},{"name":"normalizeUrlsCfg","fullName":"Autolinker.normalizeUrlsCfg","icon":"icon-method","url":"#!/api/Autolinker-method-normalizeUrlsCfg","meta":{"private":true},"sort":3},{"name":"normalizeStripPrefixCfg","fullName":"Autolinker.normalizeStripPrefixCfg","icon":"icon-method","url":"#!/api/Autolinker-method-normalizeStripPrefixCfg","meta":{"private":true},"sort":3},{"name":"normalizeTruncateCfg","fullName":"Autolinker.normalizeTruncateCfg","icon":"icon-method","url":"#!/api/Autolinker-method-normalizeTruncateCfg","meta":{"private":true},"sort":3},{"name":"parse","fullName":"Autolinker.parse","icon":"icon-method","url":"#!/api/Autolinker-method-parse","meta":{},"sort":3},{"name":"compactMatches","fullName":"Autolinker.compactMatches","icon":"icon-method","url":"#!/api/Autolinker-method-compactMatches","meta":{"private":true},"sort":3},{"name":"removeUnwantedMatches","fullName":"Autolinker.removeUnwantedMatches","icon":"icon-method","url":"#!/api/Autolinker-method-removeUnwantedMatches","meta":{"private":true},"sort":3},{"name":"parseText","fullName":"Autolinker.parseText","icon":"icon-method","url":"#!/api/Autolinker-method-parseText","meta":{"private":true},"sort":3},{"name":"link","fullName":"Autolinker.link","icon":"icon-method","url":"#!/api/Autolinker-method-link","meta":{},"sort":3},{"name":"createMatchReturnVal","fullName":"Autolinker.createMatchReturnVal","icon":"icon-method","url":"#!/api/Autolinker-method-createMatchReturnVal","meta":{"private":true},"sort":3},{"name":"getHtmlParser","fullName":"Autolinker.getHtmlParser","icon":"icon-method","url":"#!/api/Autolinker-method-getHtmlParser","meta":{"protected":true},"sort":3},{"name":"getMatchers","fullName":"Autolinker.getMatchers","icon":"icon-method","url":"#!/api/Autolinker-method-getMatchers","meta":{"protected":true},"sort":3},{"name":"getTagBuilder","fullName":"Autolinker.getTagBuilder","icon":"icon-method","url":"#!/api/Autolinker-method-getTagBuilder","meta":{},"sort":3},{"name":"HtmlTag","fullName":"Autolinker.HtmlTag","icon":"icon-class","url":"#!/api/Autolinker.HtmlTag","meta":{},"sort":1},{"name":"tagName","fullName":"Autolinker.HtmlTag.tagName","icon":"icon-cfg","url":"#!/api/Autolinker.HtmlTag-cfg-tagName","meta":{},"sort":3},{"name":"attrs","fullName":"Autolinker.HtmlTag.attrs","icon":"icon-cfg","url":"#!/api/Autolinker.HtmlTag-cfg-attrs","meta":{},"sort":3},{"name":"innerHtml","fullName":"Autolinker.HtmlTag.innerHtml","icon":"icon-cfg","url":"#!/api/Autolinker.HtmlTag-cfg-innerHtml","meta":{},"sort":3},{"name":"innerHTML","fullName":"Autolinker.HtmlTag.innerHTML","icon":"icon-cfg","url":"#!/api/Autolinker.HtmlTag-cfg-innerHTML","meta":{},"sort":3},{"name":"whitespaceRegex","fullName":"Autolinker.HtmlTag.whitespaceRegex","icon":"icon-property","url":"#!/api/Autolinker.HtmlTag-property-whitespaceRegex","meta":{"protected":true},"sort":3},{"name":"setTagName","fullName":"Autolinker.HtmlTag.setTagName","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setTagName","meta":{"chainable":true},"sort":3},{"name":"getTagName","fullName":"Autolinker.HtmlTag.getTagName","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getTagName","meta":{},"sort":3},{"name":"setAttr","fullName":"Autolinker.HtmlTag.setAttr","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setAttr","meta":{"chainable":true},"sort":3},{"name":"getAttr","fullName":"Autolinker.HtmlTag.getAttr","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getAttr","meta":{},"sort":3},{"name":"setAttrs","fullName":"Autolinker.HtmlTag.setAttrs","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setAttrs","meta":{"chainable":true},"sort":3},{"name":"getAttrs","fullName":"Autolinker.HtmlTag.getAttrs","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getAttrs","meta":{},"sort":3},{"name":"setClass","fullName":"Autolinker.HtmlTag.setClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setClass","meta":{},"sort":3},{"name":"addClass","fullName":"Autolinker.HtmlTag.addClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-addClass","meta":{"chainable":true},"sort":3},{"name":"removeClass","fullName":"Autolinker.HtmlTag.removeClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-removeClass","meta":{"chainable":true},"sort":3},{"name":"getClass","fullName":"Autolinker.HtmlTag.getClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getClass","meta":{},"sort":3},{"name":"hasClass","fullName":"Autolinker.HtmlTag.hasClass","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-hasClass","meta":{},"sort":3},{"name":"setInnerHtml","fullName":"Autolinker.HtmlTag.setInnerHtml","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-setInnerHtml","meta":{"chainable":true},"sort":3},{"name":"getInnerHtml","fullName":"Autolinker.HtmlTag.getInnerHtml","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-getInnerHtml","meta":{},"sort":3},{"name":"toAnchorString","fullName":"Autolinker.HtmlTag.toAnchorString","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-toAnchorString","meta":{},"sort":3},{"name":"buildAttrsStr","fullName":"Autolinker.HtmlTag.buildAttrsStr","icon":"icon-method","url":"#!/api/Autolinker.HtmlTag-method-buildAttrsStr","meta":{"protected":true},"sort":3},{"name":"RegexLib","fullName":"Autolinker.RegexLib","icon":"icon-singleton","url":"#!/api/Autolinker.RegexLib","meta":{},"sort":1},{"name":"alphaCharsStr","fullName":"Autolinker.RegexLib.alphaCharsStr","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-alphaCharsStr","meta":{"private":true},"sort":3},{"name":"decimalNumbersStr","fullName":"Autolinker.RegexLib.decimalNumbersStr","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-decimalNumbersStr","meta":{"private":true},"sort":3},{"name":"alphaNumericCharsStr","fullName":"Autolinker.RegexLib.alphaNumericCharsStr","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-alphaNumericCharsStr","meta":{},"sort":3},{"name":"alphaCharsStr","fullName":"Autolinker.RegexLib.alphaCharsStr","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-alphaCharsStr","meta":{},"sort":3},{"name":"domainNameRegex","fullName":"Autolinker.RegexLib.domainNameRegex","icon":"icon-property","url":"#!/api/Autolinker.RegexLib-property-domainNameRegex","meta":{},"sort":3},{"name":"Util","fullName":"Autolinker.Util","icon":"icon-singleton","url":"#!/api/Autolinker.Util","meta":{},"sort":1},{"name":"abstractMethod","fullName":"Autolinker.Util.abstractMethod","icon":"icon-property","url":"#!/api/Autolinker.Util-property-abstractMethod","meta":{},"sort":3},{"name":"trimRegex","fullName":"Autolinker.Util.trimRegex","icon":"icon-property","url":"#!/api/Autolinker.Util-property-trimRegex","meta":{"private":true},"sort":3},{"name":"assign","fullName":"Autolinker.Util.assign","icon":"icon-method","url":"#!/api/Autolinker.Util-method-assign","meta":{},"sort":3},{"name":"defaults","fullName":"Autolinker.Util.defaults","icon":"icon-method","url":"#!/api/Autolinker.Util-method-defaults","meta":{},"sort":3},{"name":"extend","fullName":"Autolinker.Util.extend","icon":"icon-method","url":"#!/api/Autolinker.Util-method-extend","meta":{},"sort":3},{"name":"ellipsis","fullName":"Autolinker.Util.ellipsis","icon":"icon-method","url":"#!/api/Autolinker.Util-method-ellipsis","meta":{},"sort":3},{"name":"indexOf","fullName":"Autolinker.Util.indexOf","icon":"icon-method","url":"#!/api/Autolinker.Util-method-indexOf","meta":{},"sort":3},{"name":"remove","fullName":"Autolinker.Util.remove","icon":"icon-method","url":"#!/api/Autolinker.Util-method-remove","meta":{},"sort":3},{"name":"splitAndCapture","fullName":"Autolinker.Util.splitAndCapture","icon":"icon-method","url":"#!/api/Autolinker.Util-method-splitAndCapture","meta":{},"sort":3},{"name":"trim","fullName":"Autolinker.Util.trim","icon":"icon-method","url":"#!/api/Autolinker.Util-method-trim","meta":{},"sort":3},{"name":"CommentNode","fullName":"Autolinker.htmlParser.CommentNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.CommentNode","meta":{},"sort":1},{"name":"comment","fullName":"Autolinker.htmlParser.CommentNode.comment","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.CommentNode-cfg-comment","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.htmlParser.CommentNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.CommentNode-method-getType","meta":{},"sort":3},{"name":"getComment","fullName":"Autolinker.htmlParser.CommentNode.getComment","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.CommentNode-method-getComment","meta":{},"sort":3},{"name":"ElementNode","fullName":"Autolinker.htmlParser.ElementNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.ElementNode","meta":{},"sort":1},{"name":"tagName","fullName":"Autolinker.htmlParser.ElementNode.tagName","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.ElementNode-cfg-tagName","meta":{"required":true},"sort":3},{"name":"closing","fullName":"Autolinker.htmlParser.ElementNode.closing","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.ElementNode-cfg-closing","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.htmlParser.ElementNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.ElementNode-method-getType","meta":{},"sort":3},{"name":"getTagName","fullName":"Autolinker.htmlParser.ElementNode.getTagName","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.ElementNode-method-getTagName","meta":{},"sort":3},{"name":"isClosing","fullName":"Autolinker.htmlParser.ElementNode.isClosing","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.ElementNode-method-isClosing","meta":{},"sort":3},{"name":"EntityNode","fullName":"Autolinker.htmlParser.EntityNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.EntityNode","meta":{},"sort":1},{"name":"getType","fullName":"Autolinker.htmlParser.EntityNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.EntityNode-method-getType","meta":{},"sort":3},{"name":"HtmlNode","fullName":"Autolinker.htmlParser.HtmlNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.HtmlNode","meta":{"abstract":true},"sort":1},{"name":"offset","fullName":"Autolinker.htmlParser.HtmlNode.offset","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.HtmlNode-cfg-offset","meta":{"required":true},"sort":3},{"name":"text","fullName":"Autolinker.htmlParser.HtmlNode.text","icon":"icon-cfg","url":"#!/api/Autolinker.htmlParser.HtmlNode-cfg-text","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.htmlParser.HtmlNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlNode-method-getType","meta":{"abstract":true},"sort":3},{"name":"getOffset","fullName":"Autolinker.htmlParser.HtmlNode.getOffset","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlNode-method-getOffset","meta":{},"sort":3},{"name":"getText","fullName":"Autolinker.htmlParser.HtmlNode.getText","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlNode-method-getText","meta":{},"sort":3},{"name":"HtmlParser","fullName":"Autolinker.htmlParser.HtmlParser","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.HtmlParser","meta":{},"sort":1},{"name":"htmlRegex","fullName":"Autolinker.htmlParser.HtmlParser.htmlRegex","icon":"icon-property","url":"#!/api/Autolinker.htmlParser.HtmlParser-property-htmlRegex","meta":{"private":true},"sort":3},{"name":"htmlCharacterEntitiesRegex","fullName":"Autolinker.htmlParser.HtmlParser.htmlCharacterEntitiesRegex","icon":"icon-property","url":"#!/api/Autolinker.htmlParser.HtmlParser-property-htmlCharacterEntitiesRegex","meta":{"private":true},"sort":3},{"name":"parse","fullName":"Autolinker.htmlParser.HtmlParser.parse","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-parse","meta":{},"sort":3},{"name":"parseTextAndEntityNodes","fullName":"Autolinker.htmlParser.HtmlParser.parseTextAndEntityNodes","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-parseTextAndEntityNodes","meta":{"private":true},"sort":3},{"name":"createCommentNode","fullName":"Autolinker.htmlParser.HtmlParser.createCommentNode","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-createCommentNode","meta":{"private":true},"sort":3},{"name":"createElementNode","fullName":"Autolinker.htmlParser.HtmlParser.createElementNode","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-createElementNode","meta":{"private":true},"sort":3},{"name":"createEntityNode","fullName":"Autolinker.htmlParser.HtmlParser.createEntityNode","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-createEntityNode","meta":{"private":true},"sort":3},{"name":"createTextNode","fullName":"Autolinker.htmlParser.HtmlParser.createTextNode","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.HtmlParser-method-createTextNode","meta":{"private":true},"sort":3},{"name":"TextNode","fullName":"Autolinker.htmlParser.TextNode","icon":"icon-class","url":"#!/api/Autolinker.htmlParser.TextNode","meta":{},"sort":1},{"name":"getType","fullName":"Autolinker.htmlParser.TextNode.getType","icon":"icon-method","url":"#!/api/Autolinker.htmlParser.TextNode-method-getType","meta":{},"sort":3},{"name":"Email","fullName":"Autolinker.match.Email","icon":"icon-class","url":"#!/api/Autolinker.match.Email","meta":{},"sort":1},{"name":"email","fullName":"Autolinker.match.Email.email","icon":"icon-cfg","url":"#!/api/Autolinker.match.Email-cfg-email","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Email.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Email-method-getType","meta":{},"sort":3},{"name":"getEmail","fullName":"Autolinker.match.Email.getEmail","icon":"icon-method","url":"#!/api/Autolinker.match.Email-method-getEmail","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Email.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Email-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Email.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Email-method-getAnchorText","meta":{},"sort":3},{"name":"Hashtag","fullName":"Autolinker.match.Hashtag","icon":"icon-class","url":"#!/api/Autolinker.match.Hashtag","meta":{},"sort":1},{"name":"serviceName","fullName":"Autolinker.match.Hashtag.serviceName","icon":"icon-cfg","url":"#!/api/Autolinker.match.Hashtag-cfg-serviceName","meta":{},"sort":3},{"name":"hashtag","fullName":"Autolinker.match.Hashtag.hashtag","icon":"icon-cfg","url":"#!/api/Autolinker.match.Hashtag-cfg-hashtag","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Hashtag.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getType","meta":{},"sort":3},{"name":"getServiceName","fullName":"Autolinker.match.Hashtag.getServiceName","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getServiceName","meta":{},"sort":3},{"name":"getHashtag","fullName":"Autolinker.match.Hashtag.getHashtag","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getHashtag","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Hashtag.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Hashtag.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Hashtag-method-getAnchorText","meta":{},"sort":3},{"name":"Match","fullName":"Autolinker.match.Match","icon":"icon-class","url":"#!/api/Autolinker.match.Match","meta":{"abstract":true},"sort":1},{"name":"tagBuilder","fullName":"Autolinker.match.Match.tagBuilder","icon":"icon-cfg","url":"#!/api/Autolinker.match.Match-cfg-tagBuilder","meta":{"required":true},"sort":3},{"name":"matchedText","fullName":"Autolinker.match.Match.matchedText","icon":"icon-cfg","url":"#!/api/Autolinker.match.Match-cfg-matchedText","meta":{"required":true},"sort":3},{"name":"offset","fullName":"Autolinker.match.Match.offset","icon":"icon-cfg","url":"#!/api/Autolinker.match.Match-cfg-offset","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Match.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getType","meta":{"abstract":true},"sort":3},{"name":"getMatchedText","fullName":"Autolinker.match.Match.getMatchedText","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getMatchedText","meta":{},"sort":3},{"name":"setOffset","fullName":"Autolinker.match.Match.setOffset","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-setOffset","meta":{},"sort":3},{"name":"getOffset","fullName":"Autolinker.match.Match.getOffset","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getOffset","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Match.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getAnchorHref","meta":{"abstract":true},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Match.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getAnchorText","meta":{"abstract":true},"sort":3},{"name":"getCssClassSuffixes","fullName":"Autolinker.match.Match.getCssClassSuffixes","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-getCssClassSuffixes","meta":{},"sort":3},{"name":"buildTag","fullName":"Autolinker.match.Match.buildTag","icon":"icon-method","url":"#!/api/Autolinker.match.Match-method-buildTag","meta":{},"sort":3},{"name":"Mention","fullName":"Autolinker.match.Mention","icon":"icon-class","url":"#!/api/Autolinker.match.Mention","meta":{},"sort":1},{"name":"serviceName","fullName":"Autolinker.match.Mention.serviceName","icon":"icon-cfg","url":"#!/api/Autolinker.match.Mention-cfg-serviceName","meta":{},"sort":3},{"name":"mention","fullName":"Autolinker.match.Mention.mention","icon":"icon-cfg","url":"#!/api/Autolinker.match.Mention-cfg-mention","meta":{"required":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Mention.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getType","meta":{},"sort":3},{"name":"getMention","fullName":"Autolinker.match.Mention.getMention","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getMention","meta":{},"sort":3},{"name":"getServiceName","fullName":"Autolinker.match.Mention.getServiceName","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getServiceName","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Mention.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Mention.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getAnchorText","meta":{},"sort":3},{"name":"getCssClassSuffixes","fullName":"Autolinker.match.Mention.getCssClassSuffixes","icon":"icon-method","url":"#!/api/Autolinker.match.Mention-method-getCssClassSuffixes","meta":{},"sort":3},{"name":"Phone","fullName":"Autolinker.match.Phone","icon":"icon-class","url":"#!/api/Autolinker.match.Phone","meta":{},"sort":1},{"name":"number","fullName":"Autolinker.match.Phone.number","icon":"icon-property","url":"#!/api/Autolinker.match.Phone-property-number","meta":{"protected":true},"sort":3},{"name":"plusSign","fullName":"Autolinker.match.Phone.plusSign","icon":"icon-property","url":"#!/api/Autolinker.match.Phone-property-plusSign","meta":{"protected":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Phone.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Phone-method-getType","meta":{},"sort":3},{"name":"getNumber","fullName":"Autolinker.match.Phone.getNumber","icon":"icon-method","url":"#!/api/Autolinker.match.Phone-method-getNumber","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Phone.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Phone-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Phone.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Phone-method-getAnchorText","meta":{},"sort":3},{"name":"Url","fullName":"Autolinker.match.Url","icon":"icon-class","url":"#!/api/Autolinker.match.Url","meta":{},"sort":1},{"name":"url","fullName":"Autolinker.match.Url.url","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-url","meta":{"required":true},"sort":3},{"name":"urlMatchType","fullName":"Autolinker.match.Url.urlMatchType","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-urlMatchType","meta":{"required":true},"sort":3},{"name":"protocolUrlMatch","fullName":"Autolinker.match.Url.protocolUrlMatch","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-protocolUrlMatch","meta":{"required":true},"sort":3},{"name":"protocolRelativeMatch","fullName":"Autolinker.match.Url.protocolRelativeMatch","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-protocolRelativeMatch","meta":{"required":true},"sort":3},{"name":"stripPrefix","fullName":"Autolinker.match.Url.stripPrefix","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-stripPrefix","meta":{"required":true},"sort":3},{"name":"stripTrailingSlash","fullName":"Autolinker.match.Url.stripTrailingSlash","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-stripTrailingSlash","meta":{"required":true},"sort":3},{"name":"decodePercentEncoding","fullName":"Autolinker.match.Url.decodePercentEncoding","icon":"icon-cfg","url":"#!/api/Autolinker.match.Url-cfg-decodePercentEncoding","meta":{"required":true},"sort":3},{"name":"schemePrefixRegex","fullName":"Autolinker.match.Url.schemePrefixRegex","icon":"icon-property","url":"#!/api/Autolinker.match.Url-property-schemePrefixRegex","meta":{"private":true},"sort":3},{"name":"wwwPrefixRegex","fullName":"Autolinker.match.Url.wwwPrefixRegex","icon":"icon-property","url":"#!/api/Autolinker.match.Url-property-wwwPrefixRegex","meta":{"private":true},"sort":3},{"name":"protocolRelativeRegex","fullName":"Autolinker.match.Url.protocolRelativeRegex","icon":"icon-property","url":"#!/api/Autolinker.match.Url-property-protocolRelativeRegex","meta":{"private":true},"sort":3},{"name":"protocolPrepended","fullName":"Autolinker.match.Url.protocolPrepended","icon":"icon-property","url":"#!/api/Autolinker.match.Url-property-protocolPrepended","meta":{"private":true},"sort":3},{"name":"getType","fullName":"Autolinker.match.Url.getType","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getType","meta":{},"sort":3},{"name":"getUrlMatchType","fullName":"Autolinker.match.Url.getUrlMatchType","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getUrlMatchType","meta":{},"sort":3},{"name":"getUrl","fullName":"Autolinker.match.Url.getUrl","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getUrl","meta":{},"sort":3},{"name":"getAnchorHref","fullName":"Autolinker.match.Url.getAnchorHref","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getAnchorHref","meta":{},"sort":3},{"name":"getAnchorText","fullName":"Autolinker.match.Url.getAnchorText","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-getAnchorText","meta":{},"sort":3},{"name":"stripSchemePrefix","fullName":"Autolinker.match.Url.stripSchemePrefix","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-stripSchemePrefix","meta":{"private":true},"sort":3},{"name":"stripWwwPrefix","fullName":"Autolinker.match.Url.stripWwwPrefix","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-stripWwwPrefix","meta":{"private":true},"sort":3},{"name":"stripProtocolRelativePrefix","fullName":"Autolinker.match.Url.stripProtocolRelativePrefix","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-stripProtocolRelativePrefix","meta":{"private":true},"sort":3},{"name":"removeTrailingSlash","fullName":"Autolinker.match.Url.removeTrailingSlash","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-removeTrailingSlash","meta":{"private":true},"sort":3},{"name":"removePercentEncoding","fullName":"Autolinker.match.Url.removePercentEncoding","icon":"icon-method","url":"#!/api/Autolinker.match.Url-method-removePercentEncoding","meta":{"private":true},"sort":3},{"name":"TruncateEnd","fullName":"Autolinker.truncate.TruncateEnd","icon":"icon-class","url":"#!/api/Autolinker.truncate.TruncateEnd","meta":{},"sort":1},{"name":"TruncateMiddle","fullName":"Autolinker.truncate.TruncateMiddle","icon":"icon-class","url":"#!/api/Autolinker.truncate.TruncateMiddle","meta":{},"sort":1},{"name":"TruncateSmart","fullName":"Autolinker.truncate.TruncateSmart","icon":"icon-class","url":"#!/api/Autolinker.truncate.TruncateSmart","meta":{},"sort":1},{"name":"Email","fullName":"Autolinker.matcher.Email","icon":"icon-class","url":"#!/api/Autolinker.matcher.Email","meta":{},"sort":1},{"name":"matcherRegex","fullName":"Autolinker.matcher.Email.matcherRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Email-property-matcherRegex","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Email.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Email-method-parseMatches","meta":{},"sort":3},{"name":"Hashtag","fullName":"Autolinker.matcher.Hashtag","icon":"icon-class","url":"#!/api/Autolinker.matcher.Hashtag","meta":{},"sort":1},{"name":"serviceName","fullName":"Autolinker.matcher.Hashtag.serviceName","icon":"icon-cfg","url":"#!/api/Autolinker.matcher.Hashtag-cfg-serviceName","meta":{},"sort":3},{"name":"matcherRegex","fullName":"Autolinker.matcher.Hashtag.matcherRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Hashtag-property-matcherRegex","meta":{"private":true},"sort":3},{"name":"nonWordCharRegex","fullName":"Autolinker.matcher.Hashtag.nonWordCharRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Hashtag-property-nonWordCharRegex","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Hashtag.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Hashtag-method-parseMatches","meta":{},"sort":3},{"name":"Matcher","fullName":"Autolinker.matcher.Matcher","icon":"icon-class","url":"#!/api/Autolinker.matcher.Matcher","meta":{"abstract":true},"sort":1},{"name":"tagBuilder","fullName":"Autolinker.matcher.Matcher.tagBuilder","icon":"icon-cfg","url":"#!/api/Autolinker.matcher.Matcher-cfg-tagBuilder","meta":{"required":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Matcher.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Matcher-method-parseMatches","meta":{"abstract":true},"sort":3},{"name":"Mention","fullName":"Autolinker.matcher.Mention","icon":"icon-class","url":"#!/api/Autolinker.matcher.Mention","meta":{},"sort":1},{"name":"matcherRegexes","fullName":"Autolinker.matcher.Mention.matcherRegexes","icon":"icon-property","url":"#!/api/Autolinker.matcher.Mention-property-matcherRegexes","meta":{"private":true},"sort":3},{"name":"nonWordCharRegex","fullName":"Autolinker.matcher.Mention.nonWordCharRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Mention-property-nonWordCharRegex","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Mention.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Mention-method-parseMatches","meta":{},"sort":3},{"name":"Phone","fullName":"Autolinker.matcher.Phone","icon":"icon-class","url":"#!/api/Autolinker.matcher.Phone","meta":{},"sort":1},{"name":"matcherRegex","fullName":"Autolinker.matcher.Phone.matcherRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Phone-property-matcherRegex","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Phone.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Phone-method-parseMatches","meta":{},"sort":3},{"name":"Url","fullName":"Autolinker.matcher.Url","icon":"icon-class","url":"#!/api/Autolinker.matcher.Url","meta":{},"sort":1},{"name":"stripPrefix","fullName":"Autolinker.matcher.Url.stripPrefix","icon":"icon-cfg","url":"#!/api/Autolinker.matcher.Url-cfg-stripPrefix","meta":{"required":true},"sort":3},{"name":"stripTrailingSlash","fullName":"Autolinker.matcher.Url.stripTrailingSlash","icon":"icon-cfg","url":"#!/api/Autolinker.matcher.Url-cfg-stripTrailingSlash","meta":{"required":true},"sort":3},{"name":"decodePercentEncoding","fullName":"Autolinker.matcher.Url.decodePercentEncoding","icon":"icon-cfg","url":"#!/api/Autolinker.matcher.Url-cfg-decodePercentEncoding","meta":{"required":true},"sort":3},{"name":"matcherRegex","fullName":"Autolinker.matcher.Url.matcherRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.Url-property-matcherRegex","meta":{"private":true},"sort":3},{"name":"wordCharRegExp","fullName":"Autolinker.matcher.Url.wordCharRegExp","icon":"icon-property","url":"#!/api/Autolinker.matcher.Url-property-wordCharRegExp","meta":{"private":true},"sort":3},{"name":"openParensRe","fullName":"Autolinker.matcher.Url.openParensRe","icon":"icon-property","url":"#!/api/Autolinker.matcher.Url-property-openParensRe","meta":{"private":true},"sort":3},{"name":"closeParensRe","fullName":"Autolinker.matcher.Url.closeParensRe","icon":"icon-property","url":"#!/api/Autolinker.matcher.Url-property-closeParensRe","meta":{"private":true},"sort":3},{"name":"parseMatches","fullName":"Autolinker.matcher.Url.parseMatches","icon":"icon-method","url":"#!/api/Autolinker.matcher.Url-method-parseMatches","meta":{},"sort":3},{"name":"matchHasUnbalancedClosingParen","fullName":"Autolinker.matcher.Url.matchHasUnbalancedClosingParen","icon":"icon-method","url":"#!/api/Autolinker.matcher.Url-method-matchHasUnbalancedClosingParen","meta":{"private":true},"sort":3},{"name":"matchHasInvalidCharAfterTld","fullName":"Autolinker.matcher.Url.matchHasInvalidCharAfterTld","icon":"icon-method","url":"#!/api/Autolinker.matcher.Url-method-matchHasInvalidCharAfterTld","meta":{"private":true},"sort":3},{"name":"UrlMatchValidator","fullName":"Autolinker.matcher.UrlMatchValidator","icon":"icon-singleton","url":"#!/api/Autolinker.matcher.UrlMatchValidator","meta":{"private":true},"sort":1},{"name":"isValidIpAddress","fullName":"Autolinker.matcher.UrlMatchValidator.isValidIpAddress","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-isValidIpAddress","meta":{"private":true},"sort":3},{"name":"containsMultipleDots","fullName":"Autolinker.matcher.UrlMatchValidator.containsMultipleDots","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-containsMultipleDots","meta":{"private":true},"sort":3},{"name":"hasFullProtocolRegex","fullName":"Autolinker.matcher.UrlMatchValidator.hasFullProtocolRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.UrlMatchValidator-property-hasFullProtocolRegex","meta":{"private":true},"sort":3},{"name":"uriSchemeRegex","fullName":"Autolinker.matcher.UrlMatchValidator.uriSchemeRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.UrlMatchValidator-property-uriSchemeRegex","meta":{"private":true},"sort":3},{"name":"hasWordCharAfterProtocolRegex","fullName":"Autolinker.matcher.UrlMatchValidator.hasWordCharAfterProtocolRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.UrlMatchValidator-property-hasWordCharAfterProtocolRegex","meta":{"private":true},"sort":3},{"name":"ipRegex","fullName":"Autolinker.matcher.UrlMatchValidator.ipRegex","icon":"icon-property","url":"#!/api/Autolinker.matcher.UrlMatchValidator-property-ipRegex","meta":{"private":true},"sort":3},{"name":"isValid","fullName":"Autolinker.matcher.UrlMatchValidator.isValid","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-isValid","meta":{},"sort":3},{"name":"isValidUriScheme","fullName":"Autolinker.matcher.UrlMatchValidator.isValidUriScheme","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-isValidUriScheme","meta":{"private":true},"sort":3},{"name":"urlMatchDoesNotHaveProtocolOrDot","fullName":"Autolinker.matcher.UrlMatchValidator.urlMatchDoesNotHaveProtocolOrDot","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-urlMatchDoesNotHaveProtocolOrDot","meta":{"private":true},"sort":3},{"name":"urlMatchDoesNotHaveAtLeastOneWordChar","fullName":"Autolinker.matcher.UrlMatchValidator.urlMatchDoesNotHaveAtLeastOneWordChar","icon":"icon-method","url":"#!/api/Autolinker.matcher.UrlMatchValidator-method-urlMatchDoesNotHaveAtLeastOneWordChar","meta":{"private":true},"sort":3},{"name":"Live Example","fullName":"example: Live Example","icon":"icon-example","url":"#!/example/live-example","meta":{},"sort":4}],"guideSearch":{},"tests":false,"signatures":[{"long":"abstract","short":"ABS","tagname":"abstract"},{"long":"chainable","short":">","tagname":"chainable"},{"long":"deprecated","short":"DEP","tagname":"deprecated"},{"long":"experimental","short":"EXP","tagname":"experimental"},{"long":"★","short":"★","tagname":"new"},{"long":"preventable","short":"PREV","tagname":"preventable"},{"long":"private","short":"PRI","tagname":"private"},{"long":"protected","short":"PRO","tagname":"protected"},{"long":"readonly","short":"R O","tagname":"readonly"},{"long":"removed","short":"REM","tagname":"removed"},{"long":"required","short":"REQ","tagname":"required"},{"long":"static","short":"STA","tagname":"static"},{"long":"template","short":"TMP","tagname":"template"}],"memberTypes":[{"title":"Config options","toolbar_title":"Configs","position":1,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/cfg.png","subsections":[{"title":"Required config options","filter":{"required":true}},{"title":"Optional config options","filter":{"required":false},"default":true}],"name":"cfg"},{"title":"Properties","position":2,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/property.png","subsections":[{"title":"Instance properties","filter":{"static":false},"default":true},{"title":"Static properties","filter":{"static":true}}],"name":"property"},{"title":"Methods","position":3,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/method.png","subsections":[{"title":"Instance methods","filter":{"static":false},"default":true},{"title":"Static methods","filter":{"static":true}}],"name":"method"},{"title":"Events","position":4,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/event.png","name":"event"},{"title":"CSS Variables","toolbar_title":"CSS Vars","position":5,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/css_var.png","name":"css_var"},{"title":"CSS Mixins","position":6,"icon":"/Library/Ruby/Gems/2.0.0/gems/jsduck-5.3.4/lib/jsduck/tag/icons/css_mixin.png","name":"css_mixin"}],"localStorageDb":"docs","showPrintButton":false,"touchExamplesUi":false,"source":true,"commentsUrl":null,"commentsDomain":null,"message":""}}; diff --git a/docs/api/index.html b/docs/api/index.html index 4f309cfa..feb44503 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -1,7 +1,7 @@ - Autolinker v1.5.0 API Docs + Autolinker v1.6.0 API Docs @@ -13,7 +13,7 @@ - + @@ -22,9 +22,9 @@ -
Autolinker v1.5.0 API Docs
+
Autolinker v1.6.0 API Docs
-
Autolinker v1.5.0 API Docs
+
Autolinker v1.6.0 API Docs