-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix(toEnglish): properly detect word boundaries #177
Conversation
Pull Request Test Coverage Report for Build 341893072Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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.
Looks good to me and the test case coverage is sufficient. @sarabveer if you can take a look today to confirm, that'd be good, I'll merge at EOD.
toEnglish
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.
gurmukhi-utils/lib/toShahmukhi.js
Line 108 in f0a2bfa
[ new RegExp( `(\\S[^ਹ])([ਿੁ])([\\s$${vishraams.join( '' )}])`, 'ug' ), '$1$3' ], // Remove trailing ੁ and ਿ except when on ਹ or on a standalone akhar |
This would also need to be updated.
Since you implemented that and we are not quite fluent in it, perhaps you can propose something more concrete/actionable? Else you can file an issue and do it later |
Perhaps best to open a new issue for you to work on, I don't know how to fix the tests on this Please allow this PR to be merged in for the time being |
Moved to #180 and releasing as is. |
Fixes #175
Summary
Found this bug while @Harjot1Singh was working on single word translits in presenter
Tests for unexpected behavior
All old tests pass, as do these new ones:
Time spent on PR
one hour
Reviewers
@Harjot1Singh @sarabveer