Skip to content

Commit 638804c

Browse files
committed
Update README and TaiwanUtilities.csproj for v1.0.3
Updated README.md to include TaiwanIdValidator details and example usage. Modified TaiwanUtilities.csproj to add 'Validator' tag, update version to 1.0.3, correct package reference formatting, and ensure necessary package references for netstandard2.0.
1 parent 7143848 commit 638804c

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,17 @@ var actual = RocDateTime.Parse("民國貳參年陸月玖日");
3434
// result: pass
3535
Assert.Equal<DateTime>(expect, actual);
3636
```
37+
38+
### `TaiwanIdValidator` 型別
39+
- 中華民國身分證字號驗證驗證
40+
- 新/舊版臺灣地區無戶籍國民、外國人、大陸地區人民及香港或澳門居民之專屬代號驗證
41+
- 營利事業統一編號驗證 (支援新/舊版統一編號檢查)
42+
- 自然人憑證編號驗證
43+
- 電子發票手機條碼驗證
44+
- 電子發票捐贈碼驗證
45+
```csharp
46+
using TaiwanUtilities;
47+
48+
// result: pass
49+
Assert.True(TaiwanIdValidator.IsIdentityCardNumber("A123456789"));
50+
```

src/TaiwanUtilities/TaiwanUtilities.csproj

+4-7
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@
2727
<!-- Pack Settings -->
2828
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2929
<PackageReadmeFile>README.md</PackageReadmeFile>
30-
<PackageTags>Taiwan,Utilities,ChineseDecimal,ChineseNumeric,Numeric,Parser,Converter,InternationalNumericFormatter,RocDateTime</PackageTags>
31-
<PackageVersion>1.0.2</PackageVersion>
32-
<!--<PackageVersion>1.0.3-alpha.1</PackageVersion>-->
30+
<PackageTags>Taiwan,Utilities,ChineseDecimal,ChineseNumeric,Numeric,Parser,Converter,InternationalNumericFormatter,RocDateTime,Validator</PackageTags>
31+
<PackageVersion>1.0.3</PackageVersion>
3332

3433
<!-- Source Link Settings-->
3534
<PublishRepositoryUrl>true</PublishRepositoryUrl>
@@ -57,7 +56,7 @@
5756

5857

5958

60-
<ItemGroup Condition=" $(TargetFramework) == 'netstandard2.0'">
59+
<ItemGroup Condition=" $(TargetFramework) == 'netstandard2.0'">
6160
<PackageReference Include="System.Text.Json" Version="8.0.5" />
6261
<PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.1" />
6362
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
@@ -76,9 +75,7 @@
7675

7776

7877
<ItemGroup Condition=" $(TargetFramework) != 'net8' ">
79-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
80-
<PrivateAssets>all</PrivateAssets>
81-
</PackageReference>
78+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
8279
</ItemGroup>
8380

8481

0 commit comments

Comments
 (0)