diff --git a/src/Consume/Consume.cs b/src/Consume/Consume.cs index a7074f5d..9eb2745d 100644 --- a/src/Consume/Consume.cs +++ b/src/Consume/Consume.cs @@ -13,6 +13,7 @@ using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Text; +using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; #pragma warning disable CS4014 @@ -198,6 +199,13 @@ async Task StreamReaderReadAsync() var reader = new StreamReader(new MemoryStream()); var read = await reader.ReadAsync(memory); } + + void RegexIsMatch() + { + var regex = new Regex("result"); + regex.IsMatch("value".AsSpan()); + } + async Task StreamReadAsync() { var input = new byte[] diff --git a/src/Polyfill/Polyfill.nuspec b/src/Polyfill/Polyfill.nuspec index 9d340323..b447dd2e 100644 --- a/src/Polyfill/Polyfill.nuspec +++ b/src/Polyfill/Polyfill.nuspec @@ -27,6 +27,8 @@ target="contentFiles/cs/netstandard2.0/Polyfill/StringInterpolation"/> + Pollyfill\PlatformCompatibility\%(RecursiveDir)%(Filename).cs + + Pollyfill\Regex\%(RecursiveDir)%(Filename).cs + \ No newline at end of file