This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/regexp-tree/dist/optimizer/transforms/index.js

56 lines
1.7 KiB
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
/**
* The MIT License (MIT)
* Copyright (c) 2017-present Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
*/
'use strict';
module.exports = {
// \ud83d\ude80 -> \u{1f680}
'charSurrogatePairToSingleUnicode': require('./char-surrogate-pair-to-single-unicode-transform'),
// \u0061 -> a
'charCodeToSimpleChar': require('./char-code-to-simple-char-transform'),
// /Aa/i -> /aa/i
'charCaseInsensitiveLowerCaseTransform': require('./char-case-insensitive-lowercase-transform'),
// [\d\d] -> [\d]
'charClassRemoveDuplicates': require('./char-class-remove-duplicates-transform'),
// a{1,2}a{2,3} -> a{3,5}
'quantifiersMerge': require('./quantifiers-merge-transform'),
// a{1,} -> a+, a{3,3} -> a{3}, a{1} -> a
'quantifierRangeToSymbol': require('./quantifier-range-to-symbol-transform'),
// [a-a] -> [a], [a-b] -> [ab]
'charClassClassrangesToChars': require('./char-class-classranges-to-chars-transform'),
// [a-de-f] -> [a-f]
'charClassClassrangesMerge': require('./char-class-classranges-merge-transform'),
// [0-9] -> [\d]
'charClassToMeta': require('./char-class-to-meta-transform'),
// [\d] -> \d, [^\w] -> \W
'charClassToSingleChar': require('./char-class-to-single-char-transform'),
// \e -> e
'charEscapeUnescape': require('./char-escape-unescape-transform'),
// (ab|ab) -> (ab)
'disjunctionRemoveDuplicates': require('./disjunction-remove-duplicates-transform'),
// (a|b|c) -> [abc]
'groupSingleCharsToCharClass': require('./group-single-chars-to-char-class'),
// (?:)a -> a
'removeEmptyGroup': require('./remove-empty-group-transform'),
// (?:a) -> a
'ungroup': require('./ungroup-transform'),
// abcabcabc -> (?:abc){3}
'combineRepeatingPatterns': require('./combine-repeating-patterns-transform')
};