We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f7d19 commit 87f2ef6Copy full SHA for 87f2ef6
tests/AutolinkerTest.js
@@ -236,6 +236,11 @@ Ext.test.Session.addSuite( new Ext.test.Suite( {
236
237
// Test the 'stripPrefix' option
238
239
+ "link() should not remove the prefix for non-http protocols" : function() {
240
+ var result = Autolinker.link( "Test file://execute-virus.com" );
241
+ Y.Assert.areSame( 'Test <a href="file://execute-virus.com" target="_blank">file://execute-virus.com</a>', result );
242
+ },
243
+
244
"link() should not remove 'http://www.' when the 'stripPrefix' option is set to false" : function() {
245
var result = Autolinker.link( "Test http://www.url.com", { stripPrefix: false } );
246
Y.Assert.areSame( 'Test <a href="http://www.url.com" target="_blank">http://www.url.com</a>', result );
0 commit comments