Skip to content

Commit

Permalink
Merge pull request #39 from zvirja/generate-ascii-chars
Browse files Browse the repository at this point in the history
Generate ASCII symbol for any_char placeholder
  • Loading branch information
moodmosaic authored Apr 12, 2018
2 parents 4bc0e7f + df9810f commit 6b64b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Fare/RegExp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ private RegExp ParseCharClassExp()
RegExp e = this.ParseCharClasses();
if (negate)
{
e = ExcludeChars(e, MakeAnyChar());
e = ExcludeChars(e, MakeAnyPrintableASCIIChar());
}

if (!this.Match(']'))
Expand All @@ -834,7 +834,7 @@ private RegExp ParseSimpleExp()
{
if (this.Match('.'))
{
return RegExp.MakeAnyChar();
return MakeAnyPrintableASCIIChar();
}

if (this.Check(RegExpSyntaxOptions.Empty) && this.Match('#'))
Expand Down

0 comments on commit 6b64b3c

Please sign in to comment.