You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gulp.task('do-unit-tests',gulp.series('build-unit-tests','run-unit-tests'));// just runs the unit tests without the integration tests
102
+
gulp.task('do-integration-tests',gulp.series('build-integration-tests','run-integration-tests'));// just runs the integration tests without the unit tests
gulp.task('test-unit',gulp.series('clean-unit-tests','do-unit-tests'));// just runs the unit tests without the integration tests
127
+
gulp.task('test-integration',gulp.series('build-src','clean-integration-tests','do-integration-tests'));// just runs the integration tests without the unit tests
Copy file name to clipboardExpand all lines: src/autolinker.ts
+33-20Lines changed: 33 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,7 @@ export default class Autolinker {
280
280
* in the given text. Ex: `google.com`, `asdf.org/?page=1`, etc. `false`
281
281
* to prevent these types of matches.
282
282
*/
283
-
privatereadonlyurls: UrlsConfig={};// default value just to get the above doc comment in the ES5 output and documentation generator
283
+
privatereadonlyurls: UrlsConfigObj={};// default value just to get the above doc comment in the ES5 output and documentation generator
284
284
285
285
/**
286
286
* @cfg {Boolean} [email=true]
@@ -310,7 +310,7 @@ export default class Autolinker {
310
310
*
311
311
* Pass `false` to skip auto-linking of hashtags.
312
312
*/
313
-
privatereadonlyhashtag: false|HashtagServices=false;// default value just to get the above doc comment in the ES5 output and documentation generator
313
+
privatereadonlyhashtag: HashtagConfig=false;// default value just to get the above doc comment in the ES5 output and documentation generator
314
314
315
315
/**
316
316
* @cfg {String/Boolean} [mention=false]
@@ -324,7 +324,7 @@ export default class Autolinker {
324
324
*
325
325
* Defaults to `false` to skip auto-linking of mentions.
326
326
*/
327
-
privatereadonlymention: false|MentionServices=false;// default value just to get the above doc comment in the ES5 output and documentation generator
327
+
privatereadonlymention: MentionConfig=false;// default value just to get the above doc comment in the ES5 output and documentation generator
328
328
329
329
/**
330
330
* @cfg {Boolean} [newWindow=true]
@@ -366,7 +366,7 @@ export default class Autolinker {
366
366
* `'www.google.com'` will be displayed as `'google.com'`. `false` to not
367
367
* strip the `'www'`.
368
368
*/
369
-
privatereadonlystripPrefix: StripPrefixConfig={scheme: true,www: true};// default value just to get the above doc comment in the ES5 output and documentation generator
369
+
privatereadonlystripPrefix: Required<StripPrefixConfigObj>={scheme: true,www: true};// default value just to get the above doc comment in the ES5 output and documentation generator
370
370
371
371
/**
372
372
* @cfg {Boolean} [stripTrailingSlash=true]
@@ -437,7 +437,7 @@ export default class Autolinker {
437
437
* 'yahoo.com/some..to/a/file'. For more details, see
438
438
* {@link Autolinker.truncate.TruncateSmart}.
439
439
*/
440
-
privatereadonlytruncate: TruncateConfig={length: 0,location : 'end'};// default value just to get the above doc comment in the ES5 output and documentation generator
440
+
privatereadonlytruncate: Required<TruncateConfigObj>={length: 0,location : 'end'};// default value just to get the above doc comment in the ES5 output and documentation generator
441
441
442
442
/**
443
443
* @cfg {String} className
@@ -474,7 +474,7 @@ export default class Autolinker {
474
474
* is currently processing. See {@link Autolinker.match.Match} subclasses
475
475
* for details.
476
476
*/
477
-
privatereadonlyreplaceFn: null|((match: Match)=>ReplaceFnReturn)=null;// default value just to get the above doc comment in the ES5 output and documentation generator
477
+
privatereadonlyreplaceFn: ReplaceFn|null=null;// default value just to get the above doc comment in the ES5 output and documentation generator
478
478
479
479
/**
480
480
* @cfg {Object} context
@@ -554,7 +554,9 @@ export default class Autolinker {
@@ -50,7 +50,7 @@ export class UrlMatch extends Match {
50
50
*
51
51
* The Object form of {@link Autolinker#cfg-stripPrefix}.
52
52
*/
53
-
privatereadonlystripPrefix: StripPrefixConfig={scheme: true,www: true};// default value just to get the above doc comment in the ES5 output and documentation generator
53
+
privatereadonlystripPrefix: Required<StripPrefixConfigObj>={scheme: true,www: true};// default value just to get the above doc comment in the ES5 output and documentation generator
@@ -21,7 +21,7 @@ export class UrlMatcher extends Matcher {
21
21
*
22
22
* The Object form of {@link Autolinker#cfg-stripPrefix}.
23
23
*/
24
-
protectedstripPrefix: StripPrefixConfig={scheme: true,www: true};// default value just to get the above doc comment in the ES5 output and documentation generator
24
+
protectedstripPrefix: Required<StripPrefixConfigObj>={scheme: true,www: true};// default value just to get the above doc comment in the ES5 output and documentation generator
25
25
26
26
/**
27
27
* @cfg {Boolean} stripTrailingSlash (required)
@@ -331,7 +331,7 @@ export class UrlMatcher extends Matcher {
0 commit comments