Skip to content
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

Table index regex bug #16

Open
Tyraxaes opened this issue Jan 24, 2022 · 0 comments
Open

Table index regex bug #16

Tyraxaes opened this issue Jan 24, 2022 · 0 comments

Comments

@Tyraxaes
Copy link

Describe the bug
When Slide.php in the table function is processing the index of the row of the table, it has a regex expression that has de digit part wrong, it should include the digits (pair) not one single digit, otherwise it will repeat the index above 10 and will repeat the data.

Actual code:

'/<([^>]+:?' . self::TABLE_ROW_TEMPLATE_NAME . '([\d])+\/>?)/'

Solution:

'/<([^>]+:?' . self::TABLE_ROW_TEMPLATE_NAME . '([\d]+)\/>?)/'

To Reproduce
Steps to reproduce the behavior:
Have an array with 10 or more elements to process into the table (with differents numeric index). Use table, boom, it will repeat those above 10.

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

No branches or pull requests

1 participant