From 357bcae450ecb5d1abc7cb37d7a2a6538032ab84 Mon Sep 17 00:00:00 2001 From: Thelonius Kort Date: Sun, 28 May 2023 15:23:25 +0200 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=99=20to=20partitioning=20regex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/outlook/internal_tree/raw_internal_basic.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outlook/internal_tree/raw_internal_basic.ex b/lib/outlook/internal_tree/raw_internal_basic.ex index bcb17fc..15235e4 100644 --- a/lib/outlook/internal_tree/raw_internal_basic.ex +++ b/lib/outlook/internal_tree/raw_internal_basic.ex @@ -18,7 +18,7 @@ defmodule Outlook.InternalTree.RawInternalBasic do |> String.replace(~r/\.\.\.+/u, "…") |> String.replace(~r/([[:upper:]])\./u, "\\1#{@nonperiodmarker}") |> String.replace(~r/(\d)\.(\d)/u, "\\1#{@nonperiodmarker}\\2") - |> String.replace(~r|([.?!]["'”]?\s*)|u, "\\1#{@splitmarker}") + |> String.replace(~r|([.?!]["'”’]?\s*)|u, "\\1#{@splitmarker}") |> String.replace(@nonperiodmarker, ".") } | set_split_markers(rest) ] end