Skip to content

Commit

Permalink
move regex
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Feb 19, 2024
1 parent d9b4ec8 commit 194a93b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Consume/Consume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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[]
Expand Down
2 changes: 2 additions & 0 deletions src/Polyfill/Polyfill.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
target="contentFiles/cs/netstandard2.0/Polyfill/StringInterpolation"/>
<file src="Trimming\*.cs"
target="contentFiles/cs/netstandard2.0/Polyfill/Trimming"/>
<file src="Regex\*.cs"
target="contentFiles/cs/netstandard2.0/Polyfill/Regex"/>
<file src="PlatformCompatibility\*.cs"
target="contentFiles/cs/netstandard2.0/Polyfill/PlatformCompatibility"/>
<file src="Polyfill.targets"
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions src/TestIncludes.targets
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@
<Compile Include="$(SolutionDir)Polyfill\PlatformCompatibility\*.cs">
<Link>Pollyfill\PlatformCompatibility\%(RecursiveDir)%(Filename).cs</Link>
</Compile>
<Compile Include="$(SolutionDir)Polyfill\Regex\*.cs">
<Link>Pollyfill\Regex\%(RecursiveDir)%(Filename).cs</Link>
</Compile>
</ItemGroup>
</Project>

0 comments on commit 194a93b

Please sign in to comment.