File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,11 @@ for (const localeFile of localeFiles) {
76
76
const localeCategory = localeTranslations [ enCategoryName ] || { } ;
77
77
78
78
// Prefix for regular expressions that require the pattern to exist within a category. This depends on
79
- // categories and their tags to not contain new lines and categories being separated by a newline
79
+ // categories and their tags to not contain new lines and categories being separated by a newline. This regex
80
+ // is intended to be used as a prefix for regular expressions looking for a specific tag. It is used to
81
+ // make sure the tag belongs to the current category. It does so by ensuring that there is a category name
82
+ // in the locale file, followed by one or more non empty lines. You can then append any tag specififc regex
83
+ // to this expression to obtain a regular expression that pattern matches a specific tag within a category.
80
84
const categoryRegexPrefix = `\\s\\s${ escapeRegexp ( enCategoryName ) } :\\n(?:.+\\n)*` ;
81
85
82
86
rewrittenLines . push ( '' ) ;
You can’t perform that action at this time.
0 commit comments