Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Loskir committed Jun 14, 2023
1 parent ea1a21a commit 6eddcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const isNotNull = <T>(v: T | null): v is T => v !== null

export const insertNbspIntoName = (name: string) => {
return name.replace(/(?<=^|\s|,)(и|с|из|\d+) /gi, "$1\u00A0")
return name.replace(/(^|\s|,)(и|с|из|\d+) /gi, "$1$2\u00A0")
}

export const createArray = (length: number) => Array(length).fill("")

1 comment on commit 6eddcbe

@vercel
Copy link

@vercel vercel bot commented on 6eddcbe Jun 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

price-monitor – ./

price-monitor-loskir.vercel.app
price-monitor-mu.vercel.app
price-monitor-git-main-loskir.vercel.app

Please sign in to comment.