Skip to content

Commit

Permalink
fix: issues with case names containing double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
hueyy committed Sep 18, 2022
1 parent d04d882 commit 5d12e89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clerkent",
"version": "3.4.1",
"version": "3.4.2",
"private": true,
"description": "quick search legal search",
"repository": "https://github.com/lacuna-technologies/clerkent.git",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/Helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// eslint-disable-next-line unicorn/better-regex, no-useless-escape
const sanitiseFilename = (fileName: string) => fileName.replace(/[^\d --\.\[\]a-z]/gi, ``)
const sanitiseCaseCitation = (citation: string) => citation.replace(/[^\d --[\]a-z]/gi, ` `)
const sanitiseFilename = (fileName: string) => fileName.replace(/[^\d --\.\[\]a-z]|"/gi, ``)
const sanitiseCaseCitation = (citation: string) => citation.replace(/[^\d --[\]a-z]|"/gi, ` `)
const debounce = (function_: (...arguments_: any[]) => unknown, timeout = 500) => {
let timer: NodeJS.Timer
return (...arguments_: any[]) => {
Expand Down

0 comments on commit 5d12e89

Please sign in to comment.