Created
February 19, 2016 10:29
-
-
Save TimonVS/0265acb5b9333929b4cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MODIFIED: add check for this.opts.convertVideoLinks | |
| if (this.opts.convertVideoLinks && (html.match(this.opts.regexps.linkyoutube) || html.match(this.opts.regexps.linkvimeo))) | |
| { | |
| html = this.linkify.convertVideoLinks(html); | |
| } | |
| // MODIFIED: add check for this.opts.convertImageLinks | |
| else if (this.opts.convertVideoLinks && html.match(this.opts.regexps.linkimage)) | |
| { | |
| html = this.linkify.convertImages(html); | |
| } | |
| else | |
| { | |
| html = this.linkify.convertLinks(html); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment