| Anonymous | Login | Signup for a new account | 10-28-2025 13:18 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0002907 | [Quercus] | minor | always | 09-05-08 01:23 | 09-09-08 10:56 | ||||
| Reporter | wikipo | View Status | public | ||||||
| Assigned To | nam | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 3.2.1 | Product Version | 3.1.6 | ||||
| Product Build | |||||||||
| Summary | 0002907: Regex option 'A' ignored | ||||||||
| Description |
When a regex expression uses option 'A', the match functions must use the offest specified. I have found this in mediawiki 1.12 code in this expression: $elementsRegex = "~($xmlishRegex)(?:\s|\/>|>)|(!--)~iA"; subsequently used in a call to preg_match with offset specified. |
||||||||
| Steps To Reproduce | |||||||||
| Additional Information |
I think the semantics of option 'A' is to anchor the search to the offset specified relative to the beginning of the text, while option '^' means to anchor to the beginning of the text. I changed the test in RegexpNode.AnchorBegin.match: // if (offset == 0) if (offset == state._first) This solves the problem at least for mediawiki. |
||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |