Commit f91c198
committed
bug #47329 Email image parts: regex for single closing quote (rr-it)
This PR was merged into the 4.4 branch.
Discussion
----------
Email image parts: regex for single closing quote
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
The regex for image src matches for single and double opening quotes:
`([\'"])`
The corresponding matching for non-closing characters is implemented for double quotes only:
`([^"]+)`
This change adds a non-greedy regex `.+?` which matches for as few characters as possbile before the "correspondingly matched opening quote" `\\1` appears.
Commits
-------
57c49b4 Email image parts: regex for single closing quote1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
0 commit comments