mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-15 14:11:03 +00:00
Update http.js
This commit is contained in:
parent
fac76f9328
commit
bd51f1d8e1
|
@ -499,7 +499,7 @@ var HTTPObject = function(engine) {
|
||||||
|
|
||||||
this.parseSerpUrl = function(url) {
|
this.parseSerpUrl = function(url) {
|
||||||
var getEngine = function(url) {
|
var getEngine = function(url) {
|
||||||
var match = url.match(/(?:https?:\/\/)?(?:www\.)?(google|youtube|bing|baidu|amazon)\.\w+/), result;
|
var match = url.match(/(?:https?:\/\/)?(?:www\.)?(google|youtube|bing|baidu|youtube|amazon)\.\w+/), result;
|
||||||
if (match) {
|
if (match) {
|
||||||
result = match[1];
|
result = match[1];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user