Tweak(regex): Rename Colour to Colourisation with tests focused on British spellings

This commit is contained in:
gehrleib 2025-02-15 15:27:18 -05:00
parent 40b7a300da
commit 60dd791ef7
1 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
name: Colour name: Colour
pattern: \bcolou?r(i[sz]ed?|ed)?\b pattern: \bcolou?r(i[sz]ed?|ed)?\b
description: '- Matches `colour`, `coloured`, `colourize`, `colourized`. description: '- Matches `colour`, `coloured`, `colourise`, `colourised`.
- Handles both American ("color") and British ("colour") spellings.' - Handles both American ("color") and British ("colour") spellings.'
tags: tags:
@ -31,25 +31,25 @@ tests:
passes: true passes: true
- expected: true - expected: true
id: 4 id: 4
input: colourize input: colourise
lastRun: '2025-02-13T13:29:13.301346' lastRun: '2025-02-13T13:29:13.301346'
matchSpan: matchSpan:
end: 9 end: 9
start: 0 start: 0
matchedContent: colourize matchedContent: colourise
matchedGroups: matchedGroups:
- ize - ise
passes: true passes: true
- expected: true - expected: true
id: 7 id: 7
input: colourized input: colourised
lastRun: '2025-02-13T13:29:13.301346' lastRun: '2025-02-13T13:29:13.301346'
matchSpan: matchSpan:
end: 10 end: 10
start: 0 start: 0
matchedContent: colourized matchedContent: colourised
matchedGroups: matchedGroups:
- ized - ised
passes: true passes: true
- expected: true - expected: true
id: 8 id: 8