QueryResolver
No description provided
QueryResolver
Properties
public regex: any
Methods
public static getVimeoID(query): undefined | null | string
Parses vimeo id from url
| Parameter | Type | Optional | Description |
|---|---|---|---|
| query | string | ❌ | The query |
public static preResolve(query, maxDepth): Promise<string>
Pre-resolve redirect urls
public static resolve(query, fallbackSearchEngine): ResolvedQuery
Resolves the given search query
| Parameter | Type | Optional | Description |
|---|---|---|---|
| query | string | ❌ | The query |
| fallbackSearchEngine | QueryType | ❌ | N/A |
public static validateId(q): boolean
| Parameter | Type | Optional |
|---|---|---|
| q | string | ❌ |
public static validateURL(q): boolean
| Parameter | Type | Optional |
|---|---|---|
| q | string | ❌ |