Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "regx", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Tagged template string regular expression compiler.", | ||
@@ -5,0 +5,0 @@ "main": "dist/regx.js", |
@@ -67,5 +67,5 @@ # `regx` | ||
```js | ||
const rxgm = regx('gm'); | ||
const rx = regx('gm'); | ||
const a = rxgm` | ||
const a = rx` | ||
^ // start of line | ||
@@ -76,3 +76,3 @@ a+ // one or more 'a' characters | ||
const b = rxgm` | ||
const b = rx` | ||
^ // start of line | ||
@@ -84,14 +84,14 @@ b+ // one or more 'a' characters | ||
All whitespace at the beginning and end of lines is ignored. To match literal whitespace at the beginning or end of a line you must use a character set. | ||
All whitespace at the beginning and end of each line is ignored. To match literal whitespace at the beginning or end of a line you must use a character set. | ||
```js | ||
const rxgm = regx('i'); | ||
const rx = regx('i'); | ||
const spaceBefore = rxgm` | ||
[ ]foo | ||
`; // result: /[ ]foo/i | ||
const spaceBefore = rx` | ||
[ ]foo bar | ||
`; // result: /[ ]foo bar/i | ||
const spaceAfter = rxgm` | ||
foo[ ] | ||
`; // result: /foo[ ]/i | ||
const spaceAfter = rx` | ||
foo bar[ ] | ||
`; // result: /foo bar[ ]/i | ||
``` | ||
@@ -98,0 +98,0 @@ |
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
7893