#150 - Sort notes in dd-Mmm-yyyy format

- completed, tested.
This commit is contained in:
SebastianMC 2024-07-10 12:06:01 +02:00
parent 92a33215cc
commit 16b50c3c20
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ export const NumberRegexStr: string = ' *(\\d+)'; // Plain number
export const CompoundNumberDotRegexStr: string = ' *(\\d+(?:\\.\\d+)*)'; // Compound number with dot as separator export const CompoundNumberDotRegexStr: string = ' *(\\d+(?:\\.\\d+)*)'; // Compound number with dot as separator
export const CompoundNumberDashRegexStr: string = ' *(\\d+(?:-\\d+)*)'; // Compound number with dash as separator export const CompoundNumberDashRegexStr: string = ' *(\\d+(?:-\\d+)*)'; // Compound number with dash as separator
export const Date_dd_Mmm_yyyy_RegexStr: string = ' *[0-3]*[0-9]-(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\\d{4}'; // Date like 01-Jan-2020 export const Date_dd_Mmm_yyyy_RegexStr: string = ' *([0-3]*[0-9]-(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\\d{4})'; // Date like 01-Jan-2020
export const DOT_SEPARATOR = '.' export const DOT_SEPARATOR = '.'
export const DASH_SEPARATOR = '-' export const DASH_SEPARATOR = '-'

View File

@ -407,7 +407,7 @@ const expectedSortSpecsExampleSortingSymbols: { [key: string]: CustomSortSpec }
}, { }, {
type: CustomSortGroupType.ExactName, type: CustomSortGroupType.ExactName,
regexPrefix: { regexPrefix: {
regex: /^ *[0-3]*[0-9]-(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\d{4} for the specific date format of 12\-Apr\-2024$/i, regex: /^ *([0-3]*[0-9]-(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\d{4}) for the specific date format of 12\-Apr\-2024$/i,
normalizerFn: Date_dd_Mmm_yyyy_NormalizerFn normalizerFn: Date_dd_Mmm_yyyy_NormalizerFn
} }
}, { }, {