Skip to content

Commit

Permalink
fix: update VQD regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed May 11, 2023
1 parent 918241c commit b64cadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import needle, { NeedleOptions } from 'needle';
/** @internal */
export const SPICE_BASE = 'https://duckduckgo.com/js/spice';
/** @internal */
export const VQD_REGEX = /vqd='(\d+-\d+(?:-\d+)?)'/;
export const VQD_REGEX = /vqd=['"](\d+-\d+(?:-\d+)?)['"]/;

/** The safe search values when searching DuckDuckGo. */
export enum SafeSearchType {
Expand Down

0 comments on commit b64cadd

Please sign in to comment.