Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #500 from matrix-org/dbkr/linkify_fail_fast
Browse files Browse the repository at this point in the history
Fail hard & fast if linkifyjs version is wrong
  • Loading branch information
richvdh committed Sep 27, 2016
2 parents 30ce35c + 0448dca commit e403bcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/linkify-matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ function matrixLinkify(linkify) {
var MultiToken = MT.Base;
var S_START = linkify.parser.start;

if (TT.UNDERSCORE === undefined) {
throw new Error("linkify-matrix requires linkifyjs 2.1.1: this version is too old.");
}

var ROOMALIAS = function(value) {
MultiToken.call(this, value);
Expand Down

0 comments on commit e403bcd

Please sign in to comment.