diff --git a/README.md b/README.md index 4ab0036..f490f60 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ You will need to have [Postgres](https://www.postgresql.org/) installed to run test and development databases. -Once Postgres is install, you should have access to the `psql` command. +Once Postgres is installed, you should have access to the `psql` command. ### Initialize database diff --git a/Test_Runner_Story.postman_collection.json b/Test_Runner_Story.postman_collection.json index 996dfe9..0bf6a76 100644 --- a/Test_Runner_Story.postman_collection.json +++ b/Test_Runner_Story.postman_collection.json @@ -890,7 +890,7 @@ }, { "key": "testBookAuthor", - "value": "bar", + "value": "פלוני אלמוני", "type": "string" }, { @@ -908,4 +908,4 @@ "value": "" } ] -} \ No newline at end of file +} diff --git a/src/utils/index.ts b/src/utils/index.ts index ffa6c54..835c01a 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -36,7 +36,11 @@ export const filterObjStringsForProfanity = ( Object.entries(obj).forEach(([k, v]) => { filtered[k] = v if (typeof v === 'string') { - filtered[k] = filterProfanity(v) + try { + filtered[k] = filterProfanity(v) + } catch (err) { + console.error(`Couldn't check ${v} for profanity.`); + }; } }) return filtered as T