Skip to content

Commit

Permalink
v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Jun 26, 2024
1 parent 2b80e4f commit 8ab6325
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "regex",
"version": "2.0.0",
"version": "2.1.0",
"description": "Context-aware regex template tag with advanced features and best practices built-in",
"author": "Steven Levithan",
"license": "MIT",
Expand Down
7 changes: 3 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// regex 2.0.0; Steven Levithan; MIT License

import {Context, hasUnescaped, replaceUnescaped} from 'regex-utilities';
import {CharClassContext, RegexContext, adjustNumberedBackrefs, containsCharClassUnion, countCaptures, escapeV, flagVSupported, getBreakoutChar, getEndContextForIncompletePattern, patternModsSupported, preprocess, sandboxLoneCharClassCaret, sandboxLoneDoublePunctuatorChar, sandboxUnsafeNulls} from './utils.js';
import {flagNPreprocessor} from './flag-n.js';
Expand All @@ -12,8 +10,9 @@ import {backcompatPostprocessor} from './backcompat.js';
/**
@typedef {Object} RegexTagOptions
@prop {string} [flags]
@prop {Array<(pattern: string) => string>} [postprocessors]
@prop {Array<(pattern: string, flags: string) => string>} [postprocessors]
@prop {boolean} [__flagN]
@prop {boolean} [__flagV]
@prop {boolean} [__flagX]
@prop {boolean} [__rake]
*/
Expand Down Expand Up @@ -63,8 +62,8 @@ function fromTemplate(constructor, options, template, ...values) {
flags = '',
postprocessors = [],
__flagN = true,
__flagX = true,
__flagV = flagVSupported,
__flagX = true,
__rake = true,
} = options;
if (/[vu]/.test(flags)) {
Expand Down

0 comments on commit 8ab6325

Please sign in to comment.