Created
December 8, 2018 08:56
-
-
Save easychen/c614fdbc54201dfae5f3f7ae9e1ba281 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( preg_match("/:bing\s(.+?)$/i" , $cmd , $out ) ) | |
{ | |
$ret['js'] = 'window.require("electron").shell.openExternal("https://cn.bing.com/dict/search?q=' . urlencode($out[1]) . '");'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment