Skip to content

Commit e041541

Browse files
authored
Merge pull request #64 from codingseb/dev
Dev
2 parents e2601a0 + 5a4071d commit e041541

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

CodingSeb.ExpressionEvaluator/CodingSeb.ExpressionEvaluator.csproj

+4-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<Product>CodingSeb.ExpressionEvaluator</Product>
66
<Description>A Simple Math and Pseudo C# Expression Evaluator in One C# File. Can also execute small C# like scripts</Description>
77
<Copyright>Copyright © Coding Seb 2017</Copyright>
8-
<Version>1.4.13.0</Version>
9-
<AssemblyVersion>1.4.13.0</AssemblyVersion>
10-
<FileVersion>1.4.13.0</FileVersion>
8+
<Version>1.4.14.0</Version>
9+
<AssemblyVersion>1.4.14.0</AssemblyVersion>
10+
<FileVersion>1.4.14.0</FileVersion>
1111
<OutputPath>bin\$(Configuration)\</OutputPath>
1212
<Authors>Coding Seb</Authors>
1313
<PackageId>CodingSeb.ExpressionEvaluator</PackageId>
@@ -18,9 +18,7 @@
1818
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1919
<PackageIconUrl>https://github.com/codingseb/ExpressionEvaluator/blob/master/Icon.png?raw=true</PackageIconUrl>
2020
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
21-
<PackageReleaseNotes>* More complete Corrections of the bug on &amp;&amp; and || operators when the right part throw an exception when only the left part should be evaluated
22-
* Correction of a bug when creating an exception without throwing (introduced in last release)
23-
* Some refactoring</PackageReleaseNotes>
21+
<PackageReleaseNotes>* Support for Unicode naming (variables, types, methods...) to support coding in languages like (Chinese, Korean, Japenese...)</PackageReleaseNotes>
2422
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
2523
<RepositoryUrl>https://github.com/codingseb/ExpressionEvaluator</RepositoryUrl>
2624
</PropertyGroup>

CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************************************
22
Title : ExpressionEvaluator (https://github.com/codingseb/ExpressionEvaluator)
3-
Version : 1.4.13.0
3+
Version : 1.4.14.0
44
(if last digit (the forth) is not a zero, the version is an intermediate version and can be unstable)
55
66
Author : Coding Seb
@@ -28,8 +28,7 @@ public partial class ExpressionEvaluator
2828
{
2929
#region Regex declarations
3030

31-
protected const string diactitics = "áàâãåǎăāąæéèêëěēĕėęěìíîïīĭįijóôõöōŏőøðœùúûüǔũūŭůűųýþÿŷıćĉċčçďđĝğġģĥħĵķĺļľŀłńņňŋñŕŗřśŝşšţťŧŵźżžÁÀÂÃÅǍĂĀĄÆÉÈÊËĚĒĔĖĘĚÌÍÎÏĪĬĮIJÓÔÕÖŌŎŐØÐŒÙÚÛÜǓŨŪŬŮŰŲÝÞŸŶIĆĈĊČÇĎĐĜĞĠĢĤĦĴĶĹĻĽĿŁŃŅŇŊÑŔŖŘŚŜŞŠŢŤŦŴŹŻŽß";
32-
protected const string diactiticsKeywordsRegexPattern = "a-zA-Z_" + diactitics;
31+
protected const string diactiticsKeywordsRegexPattern = @"\p{L}_";
3332
protected const string primaryTypesGroupPattern = "(?<primaryType>object|string|bool[?]?|byte[?]?|char[?]?|decimal[?]?|double[?]?|short[?]?|int[?]?|long[?]?|sbyte[?]?|float[?]?|ushort[?]?|uint[?]?|ulong[?]?|void)";
3433
protected const string primaryTypesRegexPattern = "(?<=^|[^" + diactiticsKeywordsRegexPattern + "])" + primaryTypesGroupPattern + "(?=[^a-zA-Z_]|$)";
3534

0 commit comments

Comments
 (0)