@@ -20,7 +20,7 @@ The default is this basic expression to match English sentences (Support
20
20
for Unicode upper case may be added in a future version when it can be handled
21
21
by our supported Node versions):
22
22
23
- `` ^\n?([A-Z`\\d_][\\s\\S]*[.?!`]\\s*)?$ ``
23
+ `` ^\n?([A-Z`\\d_][\\s\\S]*[.?!`\\p{RGI_Emoji} ]\\s*)?$ ``
24
24
25
25
Applies by default to the jsdoc block description and to the following tags:
26
26
@@ -31,9 +31,9 @@ Applies by default to the jsdoc block description and to the following tags:
31
31
32
32
In addition, the ` tags ` option (see below) may be used to match other tags.
33
33
34
- The default (and all regex options) defaults to using (only) the ` u ` flag, so
34
+ The default (and all regex options) defaults to using (only) the ` v ` flag, so
35
35
to add your own flags, encapsulate your expression as a string, but like a
36
- literal, e.g., ` /[A-Z].*\\./ui ` .
36
+ literal, e.g., ` /[A-Z].*\\./vi ` .
37
37
38
38
Note that ` / ` delimiters are optional, but necessary to add flags (besides
39
39
` u ` ).
@@ -970,7 +970,7 @@ function quux (foo) {
970
970
* - the `loadScript` option is set to `true`.
971
971
* @param enabled `true` to enable, `false` to disable. Default: `true`.
972
972
*/
973
- // "jsdoc/match-description": ["error"|"warn", {"contexts":["any"],"mainDescription":"/^[A-Z`-].*\\.$/us ","matchDescription":"^([A-Z`-].*(\\.|:)|-\\s.*)$","tags":{"param":true,"returns":true}}]
973
+ // "jsdoc/match-description": ["error"|"warn", {"contexts":["any"],"mainDescription":"/^[A-Z`\\ -].*\\.$/vs ","matchDescription":"^([A-Z`\\ -].*(\\.|:)|-\\s.*)$","tags":{"param":true,"returns":true}}]
974
974
975
975
/**
976
976
* @constructor
@@ -998,5 +998,10 @@ function foo(): void;
998
998
function quux () {
999
999
}
1000
1000
// "jsdoc/match-description": ["error"|"warn", {"nonemptyTags":false}]
1001
+
1002
+ /**
1003
+ * Example text. 🙂
1004
+ */
1005
+ export const example = () => { };
1001
1006
````
1002
1007
0 commit comments