Ignore:
Timestamp:
May 29, 2020, 10:45:52 PM (4 years ago)
Author:
coas-nagasima
Message:

Visual Studio 2019 と Bridge.NET でビルドできるよう更新。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/webapp/webmrbc/Names.cs

    r321 r425  
    2525using System.Runtime.InteropServices;
    2626using Bridge;
    27 using Bridge.Text.RegularExpressions;
     27using Bridge.Html5;
    2828
    2929namespace WebMrbc
     
    9191                        }
    9292                        var safeName = this.getDistinctName(name, type);
    93                         this.db_[normalized] = safeName.Substr(prefix.Length);
     93                        this.db_[normalized] = safeName.Substring(prefix.Length);
    9494                        return safeName;
    9595                }
     
    137137                                // Unfortunately names in non-latin characters will look like
    138138                                // _E9_9F_B3_E4_B9_90 which is pretty meaningless.
    139                                 name = Script.EncodeURI(name.Replace(new Regex(" "), "_").Replace(new Regex(@"[^\w]"), "_"));
     139                                name = Script.EncodeURI(name.Replace(new RegExp(" "), "_").Replace(new RegExp(@"[^\w]"), "_"));
    140140                                // Most languages don't allow names with leading numbers.
    141141                                if ("0123456789".IndexOf(name[0]) != -1) {
Note: See TracChangeset for help on using the changeset viewer.