* ColourCode: Rough failing test for #4479; not correct test-case but at least not ffffff
* Updating test to be bang-on-accurate
* ColourCodes: Fixes#4479
* ColorCodes: Cleaning out comments and some minor refactoring
* ColorCodes: Tabs -> spaces and failing test for #190
* ColorCodes: We need more control over the actual query handling so I want the raw query
* ColorCodes: red: \d green: \d blue: \d queries now work
* ColorCodes: refactoring out the need for capturing the inversion words
* ColorCodes: Removing unnecessary hash
* ColourCodes: Attempting to push as much limiting and protection as early as possible
* ColourCodes: Layout tinkering
* ColorCodes: Matches can be wider now we're planning to use named captures
* ColorCodes: Adding named captures for loop removal
* ColorCodes: Converting to use just the named captures; tests failing
* ColorCodes: need to map the type for cmyk
* ColorCodes: Layout
* ColorCodes: RGBA can be implemented as an alias now in the regex :D
* ColorCodes: Will now respond to bluishblack html not just html bluishblack!
* ColorCodes: This regex case seems to make no difference to passing tests or query patterns
* ColorCodes: Types are case sensitive!
* ColorCodes: Using the matches we can construct a colour without hacking the input query
* ColorCodes: We can use the matches for detecting inversion
* ColorCodes: Rearranging
* ColorCodes: Removing unused
* ColorCodes: Bit of cleaning
* ColorCodes: Don't need to do this in the else anymore, we can do it before!
* ColorCodes: show -> to flip the ternary
* ColorCodes: Adding tests for #3758
* ColourCodes: Switching to query_lc
* ColourCodes: Regex refactor
* ColorCodes: Triggers on any query ending in "color <name>"
- Added logic to prevent triggering when excess words are involved in
the sentence that are not expected
Fixes#3294
* - Fixed regex for filler words to be simpler
- Fixed filler count return statement by removing the double negative
* Simplified regex to catch filler words
* Fixed whitespace changes
* Added more tests for when the IA should not trigger. Existing tests already sufficiently cover when the IA should trigger.
With the full test below of where the background styling takes place,
this should be sufficient to ensure that we haven't made any wildly
wrong code changes.
We want to allow the string "code" to be used in the triggering query,
but we want it to have no effect on how the query is understood
or processed.
Addresses issue #454.
By their own documentation, the NBS submodules contain idiosyncratic
color names which are not well-suited to a general purpose color code
search.
In particular, NBS_ISCC::M contains a color called 'email' which caused
a confusing result for 'HTML email'.
The main NBS colors are included because they seem reasonable enough as
color names.
This fixes#490 and possibly partially addresses #454 and #442, I guess.
Also includes some testing ideas from @mintsoft.