Skip to content

Commit

Permalink
Enable "Compiled" for RegExp
Browse files Browse the repository at this point in the history
  • Loading branch information
nilproject committed Jan 26, 2023
1 parent 0c882ea commit fdf4b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NiL.JS/BaseLibrary/RegExp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private void makeRegex(string pattern, string flags)
_unicode = false;
try
{
var options = RegexOptions.ECMAScript | RegexOptions.CultureInvariant;
var options = RegexOptions.ECMAScript | RegexOptions.CultureInvariant | RegexOptions.Compiled;

for (int i = 0; i < flags.Length; i++)
{
Expand Down

0 comments on commit fdf4b43

Please sign in to comment.