Trello-Points icon indicating copy to clipboard operation
Trello-Points copied to clipboard

points in parenthesis interfere with custom info in parenthesis

Open slav opened this issue 12 years ago • 7 comments

I sometimes put small additional information inside regular parenthesis inside card title. That confuses Trello Points and interferes with it. Furthermore if I click on points button to add points it replaces my custom text.

Just a suggestion, but store the points in the title inside square [ ] or curly { } parenthesis. If you're concerned about usage and compatibility with existing cards, perhaps make it an option?

Thank you!

slav avatar Jun 05 '12 11:06 slav

Hi, I know there is a pb with the point detection system... I'll try to fix it soon.. Thx for your comment!

jgraglia avatar Jun 05 '12 12:06 jgraglia

Any luck changing parenthesis used?

slav avatar Jun 11 '12 02:06 slav

Hi. My week-ends are too short ;-) I'll try to publish a release soon.. if I can found the valid regexp for parsing...

jgraglia avatar Jun 11 '12 07:06 jgraglia

How're you trying to parse it? I'll write regex for you.

slav avatar Jun 11 '12 13:06 slav

Hi, I have 2 parsers : one for numerics and others with everything I have wrote some unit tests for that : test/alltests.html & test/parser-test.js (and parser.js) with differents testcases and expected result. What I want to have is "My Card (Hello) with the last paranthesis (HI)" have to return "HI" as the points "Another example with numeric (dddd and (?)" -> ? "another one (9) but ll (90)" -> 90

For now I'm using thoses regexp :

/* parse regexp- accepts digits, decimals and '?' / var positiveNumericRegexp=/((\x3f|\d.?\d+))$\s?/m; /* allow negative numbers : - / var signedNumericRegexp=/((.))$\s?/m;

/* allow all chars, non numeric points / var numericAndAlphaRegexp=/((.))$\s?/m;

jgraglia avatar Jun 22 '12 09:06 jgraglia

Is there a reason to ever return non-numeric points other than "?"? It seems like any text in parenthesis should be ignored.

AsaAyers avatar Jul 28 '12 14:07 AsaAyers

Well, letters are used for t-shirt sizing, s, m, l to indicate size of the task. Numbers tend to get people to think in terms of hours. S, m, l, etc. forces people to think about relative size.

p.s. Sorry haven't gotten to regex expression. Got swarmed with work.

slav avatar Jul 28 '12 23:07 slav