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

Commit

Permalink
Merge pull request #1148 from duckduckgo/jag/web-editor-triggers
Browse files Browse the repository at this point in the history
Editor: "editor" on its own is too broad of a trigger
  • Loading branch information
MariagraziaAlastra committed Oct 8, 2014
2 parents 9f493e9 + bfbb04c commit 5cfd4ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/DDG/Spice/Editor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ attribution github => ['https://github.com/jmg','Juan Manuel García'],
email => ['[email protected]','Juan Manuel García'];


triggers startend => 'editor';
triggers startend => 'web editor', 'online editor', 'syntax highlighter', 'syntax highlighting', 'code viewer';
spice call_type => 'self';

my @supported_languages = ("javascript", "python");
Expand Down
10 changes: 5 additions & 5 deletions t/Editor.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ use DDG::Test::Spice;

ddg_spice_test(
[qw( DDG::Spice::Editor )],
'python editor' => test_spice(
'python web editor' => test_spice(
'python',
call_type => 'self',
caller => 'DDG::Spice::Editor',
),
'editor python' => test_spice(
'online editor python' => test_spice(
'python',
call_type => 'self',
caller => 'DDG::Spice::Editor',
),
'javascript editor' => test_spice(
'javascript web editor' => test_spice(
'javascript',
call_type => 'self',
caller => 'DDG::Spice::Editor',
),
'editor javascript' => test_spice(
'syntax highlighter javascript' => test_spice(
'javascript',
call_type => 'self',
caller => 'DDG::Spice::Editor',
),
'editor JavaScript' => test_spice(
'online editor JavaScript' => test_spice(
'JavaScript',
call_type => 'self',
caller => 'DDG::Spice::Editor',
Expand Down

0 comments on commit 5cfd4ce

Please sign in to comment.