Bug Tracker

Changes between Initial Version and Version 3 of Ticket #6605


Ignore:
Timestamp:
Jun 28, 2010, 11:39:07 PM (11 years ago)
Author:
dmethvin
Comment:

The trim function was changed in 1.4 to remove this regexp.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6605

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #6605 – Description

    initial v3  
    33try the replacing regexp(rtrim) /^(\s|\u00A0)+|(\s|\u00A0)+$/g
    44with the string below, and the browser will freeze !
    5 
     5{{{
    66" x\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0x ".replace(/^(\s|\u00A0)+|(\s|\u00A0)+$/g,"")
    7 
     7}}}
    88Lastest Firefox & Chrome are freezing !
    99-----------
     
    1616-----------
    1717change
     18{{{
    1819rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g,
     20}}}
    1921by
     22{{{
    2023rtrim = /(?:^[\s\u00A0]+)|(?:[\s\u00A0]+$)/g,
     24}}}