-
Notifications
You must be signed in to change notification settings - Fork 23
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
bug fixes #17
base: master
Are you sure you want to change the base?
bug fixes #17
Conversation
def to_s | ||
@notation | ||
end | ||
|
||
def clean_text(text) | ||
text&.gsub(/{(.*)}/, '\1')&.gsub(/\s+/, ' ')&.strip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why get rid of curly braces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just realized I did not open a new branch for the bug fixes I proposed. My master diverged too much from the gem already. It has many fixes/features now.
The curly braces in particular I just thought it made more sense to remove them alltogether in a later commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple of more additions in my master , in the case you are interested, at least:
- Adding the pgn and game comment string to game object
- Fix bug when there are no moves in pgn ( only comments)
- Properly handle "don't care" variations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@muriloime @capicue How Can I allow tag_values with special characters like Ññ?
for example in the line [WhiteTeam "NARIÑO"]
I got this error:
Encoding::CompatibilityError:
incompatible encoding regexp match (UTF-8 regexp with ISO-8859-1 string)
Fixes:
MoveText#variations
to[]
instead ofnil
(This seemed more logical to me)