-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Format fractions nicely on XML import #23227
Conversation
rawWordsText.remove(re); | ||
rawWordsText = rawWordsText.simplified(); | ||
|
||
static const std::regex frac("^([0-9])(/)([0-9])$"); |
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.
Fraction 12/8 is never possible here? I ask because the regex only works with one digit
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.
It's not expected. This has a very specific use case
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.
Are 0
s really expected?
38e181a
to
a8e26db
Compare
a8e26db
to
4d669bb
Compare
Tidies up fractions thusly: