How to use the autolinker.UrlMatcher function in autolinker

To help you get started, we’ve selected a few autolinker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gregjacobs / Autolinker.js / tests-integration / test-require.spec.ts View on Github external
expect( Autolinker.EmailMatcher.name ).toBe( 'EmailMatcher' );  // function name
		expect( Autolinker.EmailMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );

		expect( Autolinker.HashtagMatcher ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.HashtagMatcher.name ).toBe( 'HashtagMatcher' );  // function name
		expect( Autolinker.HashtagMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );

		expect( Autolinker.MentionMatcher ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.MentionMatcher.name ).toBe( 'MentionMatcher' );  // function name
		expect( Autolinker.MentionMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );

		expect( Autolinker.PhoneMatcher ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.PhoneMatcher.name ).toBe( 'PhoneMatcher' );  // function name
		expect( Autolinker.PhoneMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );

		expect( Autolinker.UrlMatcher ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.UrlMatcher.name ).toBe( 'UrlMatcher' );  // function name
		expect( Autolinker.UrlMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );
	} );
github gregjacobs / Autolinker.js / tests-integration / test-require.spec.ts View on Github external
expect( Autolinker.HashtagMatcher ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.HashtagMatcher.name ).toBe( 'HashtagMatcher' );  // function name
		expect( Autolinker.HashtagMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );

		expect( Autolinker.MentionMatcher ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.MentionMatcher.name ).toBe( 'MentionMatcher' );  // function name
		expect( Autolinker.MentionMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );

		expect( Autolinker.PhoneMatcher ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.PhoneMatcher.name ).toBe( 'PhoneMatcher' );  // function name
		expect( Autolinker.PhoneMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );

		expect( Autolinker.UrlMatcher ).toEqual( jasmine.any( Function ) );  // constructor function
		expect( Autolinker.UrlMatcher.name ).toBe( 'UrlMatcher' );  // function name
		expect( Autolinker.UrlMatcher.prototype.parseMatches ).toEqual( jasmine.any( Function ) );
	} );