Skip to content

Commit fac7d76

Browse files
committed
Release
1 parent 6bc77d3 commit fac7d76

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3-
## 2.0.1
3+
## 2.0.2
4+
5+
* channelName and serverName validation bug rectified.
6+
7+
## 2.0.12.0.1
48

59
* Initial Release.

src/channel/station.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ private bool validataNameLength(string name, int valid_type = 0)
409409

410410
private bool isvalidSyntex(string name)
411411
{
412-
Regex rgx = new Regex("^[a-zA-Z0-9.:_*]+$");
412+
Regex rgx = new Regex("^[a-zA-Z0-9.:_-]+$");
413413
return rgx.IsMatch(name);
414414
}
415415
private bool validateSyntax(string name , int valid_type = 0)
@@ -699,7 +699,6 @@ public async Task send_to_dbr(int mtype , string channelName , string sid , CPri
699699

700700
public async Task<channel> subscribe(string channelName)
701701
{
702-
703702
try
704703
{
705704
this.validateName(channelName);
@@ -708,10 +707,9 @@ public async Task<channel> subscribe(string channelName)
708707
{
709708
throw (error);
710709
}
711-
710+
712711
if (this.c_channelname_sid.ContainsKey(channelName)) { throw (new dBError("E093")); }
713712

714-
715713
bool mprivate = this.isPrivateChannel(channelName);
716714

717715

src/dBridges.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<PackageId>Databridges.Sio.Client.Lib</PackageId>
6-
<Version>2.0.1</Version>
6+
<Version>2.0.2</Version>
77
<Authors>Optomate Technologies Private Limited.</Authors>
88
<Company>https://www.optomate.io</Company>
99
<Product>DatabridgesClientLibrary</Product>

src/remoteprocedure/CRpc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private bool validataNameLength(string name, int valid_type = 0)
126126

127127
private bool isvalidSyntex(string name)
128128
{
129-
Regex rgx = new Regex("^[a-zA-Z0-9.:_*]+$");
129+
Regex rgx = new Regex("^[a-zA-Z0-9.:_-]+$");
130130
return rgx.IsMatch(name);
131131
}
132132
private bool validateSyntax(string name, int valid_type = 0)

0 commit comments

Comments
 (0)