tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

u180e.js (897B)


      1 // Copyright (C) 2017 Leonardo Balter. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: prod-CharacterClassEscape
      6 description: >
      7  U+180E is no longer a Unicode `Space_Separator` symbol as of Unicode v6.3.0.
      8 info: |
      9  21.2.2.12 CharacterClassEscape
     10 
     11  ...
     12 
     13  The production CharacterClassEscape::s evaluates as follows:
     14 
     15  Return the set of characters containing the characters that are on the
     16  right-hand side of the WhiteSpace or LineTerminator productions.
     17 
     18  The production CharacterClassEscape::S evaluates as follows:
     19 
     20  Return the set of all characters not included in the set returned by
     21  CharacterClassEscape::s .
     22 features: [u180e]
     23 ---*/
     24 
     25 assert.sameValue("\u180E".replace(/\s+/g, "42"), "\u180E", "\\s should not match U+180E");
     26 assert.sameValue("\u180E".replace(/\S+/g, "42"), "42", "\\S matches U+180E");
     27 
     28 reportCompare(0, 0);