Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rs/fix unknown markers #138

Merged
merged 2 commits into from
Jan 18, 2024
Merged

rs/fix unknown markers #138

merged 2 commits into from
Jan 18, 2024

Conversation

rbnswartz
Copy link
Member

  • Improve the functionality of IgnoreUnknown
  • Fix tests

// If this is an unkown marker and we're in Ignore Unkown Marker mode then don't add the marker. We still keep any remaining text though
if (!(result.marker is UnknownMarker) || !IgnoreUnknownMarkers)
// If this is an unknown marker and we're in Ignore Unknown Marker mode then don't add the marker. We still keep any remaining text though
if (result.marker is UnknownMarker unknownMarker)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a really convenient way to cast result.marker to UnknownMarker.

Copy link
Member Author

@rbnswartz rbnswartz Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the pattern matching and casting is really convenient

@rbnswartz rbnswartz merged commit dbdef85 into develop Jan 18, 2024
2 checks passed
@rbnswartz rbnswartz deleted the rs/fix-unknown-markers branch January 18, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants