Socket
Socket
Sign inDemoInstall

regx

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regx - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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 @@

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