source: node_modules/autolinker/dist/commonjs/matcher/matcher.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.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 */
14var 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}());
33exports.Matcher = Matcher;
34//# sourceMappingURL=matcher.js.map
Note: See TracBrowser for help on using the repository browser.