Internal links regex broken
-
I believe the regex used to fix internal links is broken as it cannot match:
<a href="example.com">link</a>
When removing the space after the + in the regex, the href content is matched correctly. The correct regex would thus be:
'/<a[^>]* href=[\'"]?([^>\'" ]+)/i'
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Internal links regex broken’ is closed to new replies.