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 e6b4ab2 commit a88a8a9Copy full SHA for a88a8a9
tests/AutolinkerTest.js
@@ -261,6 +261,11 @@ Ext.test.Session.addSuite( new Ext.test.Suite( {
261
262
// Test the 'stripPrefix' option
263
264
+ "link() should not remove the prefix for non-http protocols" : function() {
265
+ var result = Autolinker.link( "Test file://execute-virus.com" );
266
+ Y.Assert.areSame( 'Test <a href="file://execute-virus.com" target="_blank">file://execute-virus.com</a>', result );
267
+ },
268
+
269
"link() should not remove 'http://www.' when the 'stripPrefix' option is set to false" : function() {
270
var result = Autolinker.link( "Test http://www.url.com", { stripPrefix: false } );
271
Y.Assert.areSame( 'Test <a href="http://www.url.com" target="_blank">http://www.url.com</a>', result );
0 commit comments