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

Commit 3ce359b

Browse files
author
Hans Kristian Flaatten
committed
docs(options): document keyRegex and arrRegex constructor options
1 parent 2a2095b commit 3ce359b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ var MongoQS = require('mongo-querystring');
7979
* `object` string - string parsing
8080
* `boolean` toBoolean - parse `"true"`, `"false"` string to booleans (default: `true`)
8181
* `boolean` toNumber - parse string integer and float values to numbers (default: `true`)
82+
* `regexp` keyRegex - allowed key names (default: `/^[a-zæøå0-9-_.]+$/i`)
83+
* `regexp` arrRegex - allowed array key names (default: `/^[a-zæøå0-9-_.]+(\[\])?$/i`)
8284

8385
#### Bult in custom queries
8486

0 commit comments

Comments
 (0)