[wp-trac] [WordPress Trac] #26850: Single quotes show up as apostrophes when appearing before numbers
WordPress Trac
noreply at wordpress.org
Mon Jan 27 20:20:20 UTC 2014
#26850: Single quotes show up as apostrophes when appearing before numbers
-------------------------------------------------+-------------------------
Reporter: yurivictor | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
Component: Formatting | Release
Severity: minor | Version: trunk
Keywords: wptexturize needs-unit-tests has- | Resolution:
patch | Focuses:
-------------------------------------------------+-------------------------
Comment (by nacin):
A negative lookahead might be better than a positive one:
`/\'(\d\d)(?!\d)/`. Otherwise '`99.` won't be caught. Or, in lieu of `\z`
and `\s`, using a word boundary should be sufficient here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26850#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list