colorcodes trigger fix
parent
b36fa6c56d
commit
04abcaf37f
|
@ -21,7 +21,7 @@ my $typestr = join '|', keys %types;
|
||||||
$typestr =~ s/([#\^\$\*\+\?])/\\$1/g;
|
$typestr =~ s/([#\^\$\*\+\?])/\\$1/g;
|
||||||
|
|
||||||
triggers query_raw => qr/^
|
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
|
(.+)\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
|
($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
|
\#([0-9a-f]{3,6})) # handles #00f, #0000ff, etc
|
||||||
|
|
Loading…
Reference in New Issue