Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uuid-regexp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuid-regexp - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

4

changelog.md
# Change Log
All notable changes to this project will be documented in this file (keepachangelog.com).
## 0.2.0 - 2016-01-14
### Added
- Add global option.
## 0.1.0 - 2016-01-13
### Added
- Initial Version.

5

index.js

@@ -22,2 +22,5 @@ 'use strict'

*
* @param {Boolean} [opts.global]
* Whether the RegExp should test against all possible matches in a string, or only against the first.
*
* @param {Boolean} [opts.nil]

@@ -33,4 +36,4 @@ * Whether to include the nil/empty UUID pattern.

format('\\b(?:%s)\\b', regexp.versioned.source + ((opts || {}).nil ? '|' + regexp.nil.source : '')),
'i'
(opts || {}).global ? 'gi' : 'i'
)
}
{
"name": "uuid-regexp",
"description": "RegExp for finding an RFC4122 compliant UUID in a string.",
"version": "0.1.0",
"version": "0.2.0",
"author": "Wil Moore III <wil.moore@wilmoore.com>",

@@ -6,0 +6,0 @@ "bugs": {

@@ -40,2 +40,5 @@ # uuid-regexp

//=> false
'Secret UUID is: {4d36e96e-e325-11ce-bfc1-08002be10318}'.replace(uuid({ global: true }), '*****')
//=> 'Secret UUID is: {*****}'
```

@@ -62,2 +65,3 @@

- `options.nil (Boolean)` Whether to include the nil/empty UUID pattern. (default: `false`)
- `options.global (Boolean)` Whether the RegExp should test against all possible matches in a string, or only against the first.

@@ -64,0 +68,0 @@ ###### returns

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc