You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And me again. I work hard on my tablesorter implementation today :)
I added an own parser for input:checkbox elements and tried to use the is-method for the parser, but it never came to it. Then I looked where it ends and I found the digit-parser will always return true. isDigit is using the following regex /^[\-+(]?\d*[)]?$/. If I test this regex with an empty string it will return true.
/^[\-+(]?\d*[)]?$/.test('');
The cell with only an input-tag inside will have an empty string as text, so the digit-parser will be applied to that column.
If I replace the * with a + it will not stop at the digit-parser and my parser will be noticed and applied. /^[\-+(]?\d+[)]?$/
I do not know if this will break something else but I guess not.
The text was updated successfully, but these errors were encountered:
And me again. I work hard on my tablesorter implementation today :)
I added an own parser for input:checkbox elements and tried to use the is-method for the parser, but it never came to it. Then I looked where it ends and I found the digit-parser will always return true. isDigit is using the following regex
/^[\-+(]?\d*[)]?$/
. If I test this regex with an empty string it will return true.The cell with only an input-tag inside will have an empty string as text, so the digit-parser will be applied to that column.
If I replace the
*
with a+
it will not stop at the digit-parser and my parser will be noticed and applied./^[\-+(]?\d+[)]?$/
I do not know if this will break something else but I guess not.
The text was updated successfully, but these errors were encountered: