Overview
| Artifact ID: | 044389336d85fcfa56c0fbcf245edd4261443a408d95458db618d6cef3253868 |
|---|---|
| Ticket: | 219233ffffffffffffffffffffffffffffffffff
string match oddity when - is the last char |
| User & Date: | sebres on 2018-05-07 22:03:22 |
Changes
- icomment:
If the behavior like below is acceptable for you, I can do a back-porting from my own branches (I assume it's relative easy): % string match {[.-B} A invalid match pattern: brackets [] not balanced Otherwise, I would like to know how exactly it must be then "fixed" (after the possible refactoring)... E.g. another variant of the "fix" can be: % string match {[.-B} A 0 % string match {[.-B} \[.-A 0 % string match {[.-B} \[.-B 1 Quasi by unbalanced brackets the pattern {[.-B} will be equivalent to the {\[.-B} Anyway, current implementation is definitely wrong: % string match {[.-B} A 1 should result either to an error or to 0. - login: "sebres"
- mimetype: "text/plain"