yesamer opened a new issue, #1409:
URL: https://github.com/apache/incubator-kie-issues/issues/1409
TCK Tests revealed some cases where `matches()` wrongly behaves.
1. `matches("abracadabra", "bra", "p")` should return an error, as the "p"
flag doesn't exist; (Please check all the functions where the flags parameter
is used e.g. `replace()`)
2. `matches("\u212A", "k", "i")` should return true. \u212A is the [Kelvin
Sign](https://codepoints.net/U+212A?lang=en), basically a K. Before fixing
that, double-check in the specs that this is the expected behavior
3. `matches("O", "[A-Z-[OI]]", "i")` should return false. Before fixing
that, double-check in the specs that this is the expected behavior
4. `matches("i", "[A-Z-[OI]]", "i")` should return false. Before fixing
that, double-check in the specs that this is the expected behavior
5. `matches("input", "pattern", " ")` same as point 1.
6. `matches("input", "pattern", "X")` same as point 1.
7. `matches("hello world", "hello\ sworld", "x")`The `x` is not supported.
(Please check all the functions where the flags parameter is used e.g.
`replace()`)
8. `matches("h", "(.)\3")` `matches("h", "(.)\2")` and `matches("input",
"\3")` should fail. Please investigate why they should fail
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]