mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-10-04 15:11:54 +00:00
Update http.js
This commit is contained in:
parent
bd51f1d8e1
commit
7e3a6bdf45
|
@ -509,7 +509,7 @@ var HTTPObject = function(engine) {
|
|||
};
|
||||
|
||||
var getKeyword = function(url) {
|
||||
var regex = /[?&](q|wd|query|k)=([^&]*)/g;
|
||||
var regex = /[?&](q|wd|query|search_query|k)=([^&]*)/g;
|
||||
var match, keywords = [];
|
||||
while ((match = regex.exec(url)) !== null) {
|
||||
keywords.push(match[2]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user