uuid-regexp
Advanced tools
Comparing version 0.1.0 to 0.2.0
# 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. |
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6843
41
85