[wp-trac] [WordPress Trac] #19308: C-style hexadecimal is incorrectly "fixed" to change the 'x' into a mathematical '×'

WordPress Trac noreply at wordpress.org
Sun Mar 30 23:31:28 UTC 2014


#19308: C-style hexadecimal is incorrectly "fixed" to change the 'x' into a
mathematical '×'
-----------------------------------+-----------------------------
 Reporter:  harrym                 |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  Formatting             |     Version:  2.1
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch wptexturize  |     Focuses:
-----------------------------------+-----------------------------
Changes (by miqrogroove):

 * keywords:  has-patch needs-refresh => has-patch wptexturize


Comment:

 In miqro-19308.patch:

 * Unit tests from kurtpayne.
 * A new regexp that uses conditions instead of alternation.
 * It looks for a word break, a single digit, and then tests if that digit
 is zero.
 * This prevents the engine from testing multiple alternates after every
 word break.
 * Decimals and commas are allowed after the first digit.
 * Hyphen (negative) also allowed as the first char after the x.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/19308#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list