This commit is contained in:
Vishwa Gaurav
2024-04-25 16:11:35 +05:30
parent 450e54d051
commit 0e6d4d4918
3 changed files with 5 additions and 5 deletions

View File

@@ -13,8 +13,8 @@ function Query(queryObj) {
this.host = queryObj.host || "www.linkedin.com";
//api handles strings with spaces by replacing the values with %20
this.keyword = queryObj.keyword?.replace(" ", "+") || "";
this.location = queryObj.location?.replace(" ", "+") || "";
this.keyword = queryObj.keyword?.trim().replace(" ", "+") || "";
this.location = queryObj.location?.trim().replace(" ", "+") || "";
this.dateSincePosted = queryObj.dateSincePosted || "";
this.jobType = queryObj.jobType || "";
this.remoteFilter = queryObj.remoteFilter || "";