@spare/regex-charset
Advanced tools
Comparing version
@@ -7,3 +7,3 @@ 'use strict'; | ||
const ANSI_BETA = /(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-ntqry=><~])/; | ||
const ANSI = RegExp(`[][[\\]()#;?]*(?:${ANSI_ALPHA.source}|${ANSI_BETA.source})`); | ||
const ANSI = new RegExp(`[][[\\]()#;?]*(?:${ANSI_ALPHA.source}|${ANSI_BETA.source})`); | ||
const ASTRAL = /[\uD800-\uDBFF][\uDC00-\uDFFF]/; | ||
@@ -10,0 +10,0 @@ const HAN = /[\u4e00-\u9fa5]|[\uff00-\uffff]/; // HAN ideographs |
const ANSI_ALPHA = /(?:(?:[a-zA-Z\d]*(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?)/; | ||
const ANSI_BETA = /(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-ntqry=><~])/; | ||
const ANSI = RegExp(`[][[\\]()#;?]*(?:${ANSI_ALPHA.source}|${ANSI_BETA.source})`); | ||
const ANSI = new RegExp(`[][[\\]()#;?]*(?:${ANSI_ALPHA.source}|${ANSI_BETA.source})`); | ||
const ASTRAL = /[\uD800-\uDBFF][\uDC00-\uDFFF]/; | ||
@@ -5,0 +5,0 @@ const HAN = /[\u4e00-\u9fa5]|[\uff00-\uffff]/; // HAN ideographs |
{ | ||
"name": "@spare/regex-charset", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "Regex sets", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/gadge/spare#readme", | ||
"gitHead": "83fd77c435556b6b5747412f4213bff4e4d984e6" | ||
"gitHead": "5ea31cb15ae366b84ff465ec98762e540b69bf49" | ||
} |
6198
0.13%