Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
use literal unicode character in example query
Browse files Browse the repository at this point in the history
  • Loading branch information
majuscule committed Dec 4, 2012
1 parent 6e02789 commit e6870e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/DDG/Goodie/ResistorColors.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package DDG::Goodie::ResistorColors;
use DDG::Goodie;
use Math::Round;
use POSIX qw(abs floor log10 pow);
use utf8;

# \x{2126} is the unicode ohm symbol
triggers query_nowhitespace => qr/^(.*)(ohm|ohms|\x{2126})/i;
Expand All @@ -19,7 +20,7 @@ zci is_cached => 1;
zci answer_type => 'resistor_colors';

primary_example_queries '4.7k ohm';
secondary_example_queries '1\x{2126}';
secondary_example_queries '1Ω';
description 'find resistor color bands';
name 'ResistorColors';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ResistorColors.pm';
Expand Down

0 comments on commit e6870e3

Please sign in to comment.