Skip to content

Commit

Permalink
support for En-dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanonim committed Sep 5, 2024
1 parent 3411aeb commit d1c529c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Regex.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const linkRegex =
/([12345]\s?)?\p{L}+\s?\d{1,3}([:,.]\s?\d{1,3}(-\d{1,3})?)?/gu;
/([12345]\s?)?\p{L}+\s?\d{1,3}([:,.]\s?\d{1,3}([-]\d{1,3})?)?/gu;

export const bookRegex = /([12345]\s?)?\p{L}+/u;

export const separatorRegex = /[-:,.]+/;
export const separatorRegex = /[-:,.]+/;

export const htmlDataRegex =
/<script\s*id="__NEXT_DATA__"\s*type="application\/json"\s*>.+?(?=<\/script>\s*<\/body>\s*<\/html>)/;
Expand Down

0 comments on commit d1c529c

Please sign in to comment.