| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.Matcher = void 0; |
| 4 |
/** |
| 5 |
* @abstract |
| 6 |
* @class Autolinker.matcher.Matcher |
| 7 |
* |
| 8 |
* An abstract class and interface for individual matchers to find matches in |
| 9 |
* an input string with linkified versions of them. |
| 10 |
* |
| 11 |
* Note that Matchers do not take HTML into account - they must be fed the text |
| 12 |
* nodes of any HTML string, which is handled by {@link Autolinker#parse}. |
| 13 |
*/ |
| 14 |
var Matcher = /** @class */ (function () { |
| 15 |
/** |
| 16 |
* @method constructor |
| 17 |
* @param {Object} cfg The configuration properties for the Matcher |
| 18 |
* instance, specified in an Object (map). |
| 19 |
*/ |
| 20 |
function Matcher(cfg) { |
| 21 |
/** |
| 22 |
* @cfg {Autolinker.AnchorTagBuilder} tagBuilder (required) |
| 23 |
* |
| 24 |
* Reference to the AnchorTagBuilder instance to use to generate HTML tags |
| 25 |
* for {@link Autolinker.match.Match Matches}. |
| 26 |
*/ |
| 27 |
// @ts-ignore |
| 28 |
this.__jsduckDummyDocProp = null; // property used just to get the above doc comment into the ES5 output and documentation generator |
| 29 |
this.tagBuilder = cfg.tagBuilder; |
| 30 |
} |
| 31 |
return Matcher; |
| 32 |
}()); |
| 33 |
exports.Matcher = Matcher; |
| 34 |
//# sourceMappingURL=matcher.js.map |