main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @abstract
|
---|
3 | * @class Autolinker.matcher.Matcher
|
---|
4 | *
|
---|
5 | * An abstract class and interface for individual matchers to find matches in
|
---|
6 | * an input string with linkified versions of them.
|
---|
7 | *
|
---|
8 | * Note that Matchers do not take HTML into account - they must be fed the text
|
---|
9 | * nodes of any HTML string, which is handled by {@link Autolinker#parse}.
|
---|
10 | */
|
---|
11 | var Matcher = /** @class */ (function () {
|
---|
12 | /**
|
---|
13 | * @method constructor
|
---|
14 | * @param {Object} cfg The configuration properties for the Matcher
|
---|
15 | * instance, specified in an Object (map).
|
---|
16 | */
|
---|
17 | function Matcher(cfg) {
|
---|
18 | /**
|
---|
19 | * @cfg {Autolinker.AnchorTagBuilder} tagBuilder (required)
|
---|
20 | *
|
---|
21 | * Reference to the AnchorTagBuilder instance to use to generate HTML tags
|
---|
22 | * for {@link Autolinker.match.Match Matches}.
|
---|
23 | */
|
---|
24 | // @ts-ignore
|
---|
25 | this.__jsduckDummyDocProp = null; // property used just to get the above doc comment into the ES5 output and documentation generator
|
---|
26 | this.tagBuilder = cfg.tagBuilder;
|
---|
27 | }
|
---|
28 | return Matcher;
|
---|
29 | }());
|
---|
30 | export { Matcher };
|
---|
31 | //# sourceMappingURL=matcher.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.