Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.

Commit 6fa0c0a

Browse files
author
ES.Skachkov
committed
add query-string 7 version to check in regexp
1 parent dc0956e commit 6fa0c0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if (process.env.NODE_ENV !== 'production' && typeof require === 'function') {
7070
// dev check.
7171
const validQueryStringInstalled =
7272
/^5.1.[1-9][0-9]*/.test(queryStringVersion) ||
73-
/^6\./.test(queryStringVersion);
73+
/^6\./.test(queryStringVersion) || /^7\./.test(queryStringVersion);
7474
if (!validQueryStringInstalled) {
7575
throw new Error(
7676
`serialize-query-params requires query-string ^5.1.1 || ^6, ` +

0 commit comments

Comments
 (0)