Ignore:
Timestamp:
08/08/14 09:24:18 (10 years ago)
Author:
tbretz
Message:
Replaced octal characters with hex-characters to avoid clashes with the strict language standard.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/termtv/js/player.js

    r17408 r17948  
    220220
    221221        // Scan the data stream for the size sequence
    222         var re2 = new RegExp("\033\\[[8];([0-9]+);([0-9]+)t", "g");
     222        var re2 = new RegExp("\x1b\\[[8];([0-9]+);([0-9]+)t", "g");
    223223        while (!maxx && !maxy)
    224224        {
     
    234234
    235235        // Scan the data stream for goto sequence if no size sequence was found
    236         var re1 = new RegExp("\033\\[([0-9]+);([0-9]+)r", "g");
     236        var re1 = new RegExp("\x1b\\[([0-9]+);([0-9]+)r", "g");
    237237        while (1)
    238238        {
     
    335335            buffer += This.stream[i].data;
    336336
    337             var re2 = new RegExp("\033\\[[8];([0-9]+);([0-9]+)t", "g");
     337            var re2 = new RegExp("\x1b\\[[8];([0-9]+);([0-9]+)t", "g");
    338338            while (1)
    339339            {
     
    352352            if (!maxx && !maxy)
    353353            {
    354                 var re1 = new RegExp("\033\\[([0-9]+);([0-9]+)r", "g");
     354                var re1 = new RegExp("\x1b\\[([0-9]+);([0-9]+)r", "g");
    355355                while (1)
    356356                {
Note: See TracChangeset for help on using the changeset viewer.