Skip to content

Commit d872169

Browse files
committed
comment: Move a comment to new location of the code it describes
1 parent 27ad4f4 commit d872169

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TaskSerializer/DefaultTaskSerializer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ function fieldRegex(symbols: string, valueRegexString: string) {
6565
if (valueRegexString !== '') {
6666
source += ' *' + valueRegexString;
6767
}
68+
// The regexes end with `$` because they will be matched and
69+
// removed from the end until none are left.
6870
source += '$';
6971
return new RegExp(source, 'u');
7072
}
@@ -94,8 +96,6 @@ export const DEFAULT_SYMBOLS: DefaultTaskSerializerSymbols = {
9496
dependsOnSymbol: '⛔',
9597
idSymbol: '🆔',
9698
TaskFormatRegularExpressions: {
97-
// The following regex's end with `$` because they will be matched and
98-
// removed from the end until none are left.
9999
priorityRegex: fieldRegex('([🔺⏫🔼🔽⏬])', ''),
100100
startDateRegex: dateFieldRegex('🛫'),
101101
createdDateRegex: dateFieldRegex('➕'),

0 commit comments

Comments
 (0)