Skip to content

Commit

Permalink
Merge pull request #507 from shimataro/develop
Browse files Browse the repository at this point in the history
version 3.0.0-rc.14
  • Loading branch information
shimataro authored Jul 26, 2020
2 parents 8eaf3d4 + 6c73843 commit 3505181
Show file tree
Hide file tree
Showing 10 changed files with 220 additions and 207 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/verify-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ jobs:
- ubuntu-20.04
deno:
- "1.0.0"
- "1.1.0"
- "1.2.0"
fail-fast: false
steps:
- name: Checkout source codes
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [3.0.0-rc.14] - 2020-07-26

### Added

* UUID pattern; `vs.STRING.PATTERN.UUID`

## [3.0.0-rc.13] - 2020-07-12

### Fixed
Expand Down Expand Up @@ -524,7 +530,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

* First release.

[Unreleased]: https://github.com/shimataro/value-schema/compare/v3.0.0-rc.13...HEAD
[Unreleased]: https://github.com/shimataro/value-schema/compare/v3.0.0-rc.14...HEAD
[3.0.0-rc.14]: https://github.com/shimataro/value-schema/compare/v3.0.0-rc.13...v3.0.0-rc.14
[3.0.0-rc.13]: https://github.com/shimataro/value-schema/compare/v3.0.0-rc.12...v3.0.0-rc.13
[3.0.0-rc.12]: https://github.com/shimataro/value-schema/compare/v3.0.0-rc.11...v3.0.0-rc.12
[3.0.0-rc.11]: https://github.com/shimataro/value-schema/compare/v3.0.0-rc.10...v3.0.0-rc.11
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,7 @@ You can also use `STRING.PATTERN` constants
|`STRING.PATTERN.IPV4`|IPv4 address|
|`STRING.PATTERN.IPV6`|IPv6 address|
|`STRING.PATTERN.URI`|URI that follows [RFC3986](https://tools.ietf.org/html/rfc3986)|
|`STRING.PATTERN.UUID`|UUID|

```javascript
// should be OK
Expand Down
3 changes: 2 additions & 1 deletion dist-deno/appliers/string/pattern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export const PATTERN = {
HTTP: REGEXP_HTTP,
IPV4: REGEXP_IPV4,
IPV6: REGEXP_IPV6,
URI: REGEXP_URI
URI: REGEXP_URI,
UUID: /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/i
};
export interface Options {
pattern?: RegExp;
Expand Down
Loading

0 comments on commit 3505181

Please sign in to comment.