File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 30
30
< script src ="../src/match/Mention.js "> </ script >
31
31
< script src ="../src/match/Url.js "> </ script >
32
32
< script src ="../src/matcher/Matcher.js "> </ script >
33
+ < script src ="../src/matcher/TldRegex.js "> </ script >
33
34
< script src ="../src/matcher/Email.js "> </ script >
34
35
< script src ="../src/matcher/Hashtag.js "> </ script >
35
36
< script src ="../src/matcher/Phone.js "> </ script >
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ describe( "Autolinker.matcher.Url", function() {
7
7
matcher = new Autolinker . matcher . Url ( {
8
8
tagBuilder : new Autolinker . AnchorTagBuilder ( ) ,
9
9
stripPrefix : false ,
10
- stripTrailingSlash : false
10
+ stripTrailingSlash : false ,
11
+ decodePercentEncoding : false
11
12
} ) ;
12
13
} ) ;
13
14
@@ -161,6 +162,12 @@ describe( "Autolinker.matcher.Url", function() {
161
162
expect ( matches . length ) . toBe ( 0 ) ;
162
163
} ) ;
163
164
165
+ it ( 'should parse long contiguous characters with no spaces in a timely manner' , function ( ) {
166
+ const start = Date . now ( ) ;
167
+ matcher . parseMatches ( new Array ( 10000 ) . join ( 'a' ) ) ;
168
+ expect ( Date . now ( ) - start ) . toBeLessThan ( 100 ) ;
169
+ } ) ;
170
+
164
171
} ) ;
165
172
166
173
} ) ;
You can’t perform that action at this time.
0 commit comments