[wp-trac] [WordPress Trac] #40817: WordCounter removeRegExp maybe broken

WordPress Trac noreply at wordpress.org
Sat May 20 19:35:22 UTC 2017


#40817: WordCounter removeRegExp maybe broken
--------------------------+-----------------------------------------
 Reporter:  DrLightman    |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:  4.6.4
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------
Changes (by azaozz):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 I think you're mixing the character class shortcuts `\w`, `\d`, `\s`, etc.
 with the UTF character escape sequences `\u####` (where #### are four
 hexadecimal digits). Also, note that the UTF chars are in an array that is
 joined before used as a string in the regex.

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


More information about the wp-trac mailing list