regexp-ast-analysis
Advanced tools
Changelog
0.7.1 (2023-09-13)
UnicodeSet
.Changelog
0.7.0 (2023-09-05)
@eslint-community/regexpp
v4.8.0 and refa
v0.12.0.is{Potentially,}{Empty,ZeroLength}
, isEmptyBackreference
, getLengthRange
, and isLengthRangeMinZero
now require a flags argument.matchesAllCharacters
.v
flag.
toUnicodeSet
is the new toCharSet
.hasStrings
will return whether a character element contains strings.getConsumedChars
will return all characters consumed by an element.Chars.maxChar(flags)
will return the maximum character (either 0xFFFF
or 0x10FFFF
) depending on the given flags.Changelog
0.6.0 (2023-03-30)
@eslint-community/regexpp
v4.5.0 and refa
v0.11.0.getClosestAncestor
now supports any number of arguments.Changelog
0.5.1 (2022-04-18)
getLongestPrefix
not caching correctly.Changelog
0.5.0 (2022-04-18)
getLengthRange
will now throw a RangeError
instead of returning undefined
for empty arrays.isLengthRangeMinZero
function that is equivalent to getLengthRange(e).min === 0
but implemented more efficiently.onlyInside
option for getLongest
function.Changelog
0.4.1 (2022-04-17)
canReorder
can now prove more alternatives to be safe to reorder.canReorder
will now create a cache if none is provided.Changelog
0.4.0 (2022-04-16)
containsCapturingGroup
.getLongestPrefix
.canReorder
.Changelog
0.3.0 (2021-09-04)
FirstLookChar
, FirstFullyConsumedChar
, and FirstPartiallyConsumedChar
interfaces are now immutable.FirstConsumedChars
and FirstLookChars
namespaces. They contain methods for working with FirstLookChar
s and FirstConsumedChar
s.FollowOperations.continueOutside
to improve analysis inside lookaround assertions.FollowEndReason
type.followPaths
now supports alternatives as the start element.getFirst{Consumed,}Char*
functions now supports alternatives as the after-this element.getFirst{Consumed,}Char*
functions can now look outside of lookarounds to return better results.exact
property of FirstConsumedChar
s is determined. getFirstConsumedChar
will now return better results.getFirstConsumedChar
sometimes returned partially consumed chars with trivially rejecting looks instead of a fully consumed char.Changelog
0.2.4 (2021-08-12)
getFirst{Consumed,}Char*
functions taking exponential time for some word boundary assertions.