colorcodes trigger fix

master
Michael Smith 2012-06-03 17:11:59 -06:00
parent b36fa6c56d
commit 04abcaf37f
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ my $typestr = join '|', keys %types;
$typestr =~ s/([#\^\$\*\+\?])/\\$1/g;
triggers query_raw => qr/^
(?:(.+)\s+(.+)\s+colou?r(?:\s+code)| # handles "rgb red color code", "red rgb color code", etc
(?:(.+)\s+(.+)\s+colou?r(?:\s+code)?| # handles "rgb red color code", "red rgb color code", etc
(.+)\s+colou?r(?:\s+code)?(?:\s+for)?\s+(.+)| # handles "rgb color code for red", "red color code for html", etc
($typestr)\s*:?\s*\(?\s*(.+?)\s*\)?| # handles "rgb( red )", "rgb:255,0,0", "rgb(255 0 0)", etc
\#([0-9a-f]{3,6})) # handles #00f, #0000ff, etc