Skip to content

Rewrote ledger-split-commodity-string#167

Closed
vanicat wants to merge 5 commits intoledger:nextfrom
vanicat:t/commodity
Closed

Rewrote ledger-split-commodity-string#167
vanicat wants to merge 5 commits intoledger:nextfrom
vanicat:t/commodity

Conversation

@vanicat
Copy link
Copy Markdown
Contributor

@vanicat vanicat commented Mar 21, 2013

As discussed in the bug 922 ledger-split-commodity-string is maybe too complicated, so this version is simpler, using string-match to match regexp on the argument.

We know that only the number contain dash, digit, dot and comma, and
commodity contain all the others number (but space), hence the
regexps. Two different regexp are needed because the commodity can be
before or after the amount.
@enderw88
Copy link
Copy Markdown
Member

Commodities are allowed to contain digits. There are many mutual funds, bond funds etc that have numerals in their names.

@vanicat
Copy link
Copy Markdown
Contributor Author

vanicat commented Mar 21, 2013

Mmm, okay. My testing seem to show that in those case, the name is between "" I will add something for those.

In this case, ledger-split-commodity-string is given the commodity name
between "  ".
@enderw88
Copy link
Copy Markdown
Member

Ask John. Maybe that is true I can't remember

On Thursday, March 21, 2013, Rémi Vanicat wrote:

Mmm, okay. My testing seem to show that in those case, the name is between
"" I will add something for those.


Reply to this email directly or view it on GitHubhttps://github.com//pull/167#issuecomment-15269516
.

Craig, Corona De Tucson, AZ
enderw88.wordpress.com

@jwiegley jwiegley closed this May 23, 2013
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.

3 participants