We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b852db commit 7d8b3c3Copy full SHA for 7d8b3c3
tests/Task/TaskRegularExpressions.test.ts
@@ -0,0 +1,27 @@
1
+import { TaskRegularExpressions } from '../../src/Task/TaskRegularExpressions';
2
+
3
+describe('List Markers', () => {
4
+ it.each([
5
+ // split list
6
+ '-',
7
+ '*',
8
+ '+',
9
+ '0.',
10
+ '1.',
11
+ '12345.',
12
+ ])('should be a valid list marker: "%s"', (candidate: string) => {
13
+ expect(TaskRegularExpressions.listMarkerRegex.exec(candidate)).not.toBeNull();
14
+ });
15
16
17
18
+ '%',
19
+ '.',
20
+ ')',
21
+ '0)',
22
+ '1)',
23
+ '12345)',
24
+ ])('should NOT be a valid list marker: "%s"', (candidate: string) => {
25
+ expect(TaskRegularExpressions.listMarkerRegex.exec(candidate)).toBeNull();
26
27
+});
0 commit comments