javalent / dice-roller

Inline dice rolling for Obsidian.md
274 stars 28 forks source link

2d table roller ignores first column #345

Open gizlup opened 1 month ago

gizlup commented 1 month ago

Check for existing bug reports before submitting.

Expected Behavior

From documentation: "Adding |xy to the end of a table roller will return a random table cell (not row) from the table, unless there is a column named xy"

Current behaviour

adding |xy only returns cells from columns other than the first column. (no column was labeled xy)

Results are never 00000 or YAAA

Reproduction

Examples to reproduce bug: Roll Result: dice: [[Sandbox Note]]^TableX]]|xy

column 1 column 2
XXXX h
YYYY a

^TableX

Results are always h or a

Roll Result: dice: [[Sandbox Note]]^TableTest]]|xy

column 1 column 2 column 3
00000 444 $$$
YAAA ZUUU ///

^TableTest

Which Operating Systems are you using?

Obsidian Version Check

1.6.7; 1.6.7

Plugin Version

11.3.1

Confirmation

Possible solution

No response