Tags: fent/ret.js
Tags
feat: add support for named capture groups (#43) * feat: add support for named capture groups * feat: Extra sanity checks for valid group names * chore: move regex defs to module scope chore: extra test to validate pattern termination behavior fix: valid capture group name changes * fix: Add `$` to capture group name * chore: invert group reconstruction ternary * fix: linting * refactor: clearer logic around group types * fix: fix named group tests
fix: fix backreferencing issue for digits greater than 10 (#39) closes #38 closes #31 * fix: fix backreferencing issue for digits greater than 10 * Resolves #38 (comment) but still need to implement post parsing to resolve #39 (comment) * run lint:fix * fix: resolve issues with referencing after reference * chore: add bracket test to get code coverage back * fix: #39 (comment) * chore: revert package-lock.json * chore: remove unecessary formatting changes * chore: remove extra space * fix #39 (review) * fix: Increase coverage and fix bugs for \8 \9 cases * chore: fix dangling comma lint error * chore: update max-len rule * fix: resolve #39 (comment) * chore: run lint:fix * chore: add comments * chore: add link to discussion in comments * chore: refactor test to use `char` Co-authored-by: fent <fentbox@gmail.com> * chore: add test for \90 Co-authored-by: fent <fentbox@gmail.com>
feat: add interface for token reconstruction (#25) * Updating dependencies * typescript conversion * style fixes * adding reconstruction functionality * exporting reconstruct from index * Update lib/types/tokens.ts Co-authored-by: fent <fentbox@gmail.com> * Update lib/types/tokens.ts Co-authored-by: fent <fentbox@gmail.com> * Update lib/tokenizer.ts Co-authored-by: fent <fentbox@gmail.com> * Fixing review comments in PR24 * Putting SyntaxError inline to be recognised by typescript compiler * adding code coverage for reconstruct * fixing semicolons in reconstruct file and updating [^.] test * Removing lookbehind (not currently tokenized) * Add documentation for `reconstruct` and `partialConstruct` * Fix typo * Remove unecessary character escaping * Adding tests for set simplifications * Fix typo and remove sanitisation comment * Update README.md Co-authored-by: fent <fentbox@gmail.com> * Change partialConstruct to reconstruct * Remove partialConstruct from readme * Remove partialConstruct from tests * Replace other instances of partialConstruct with reconstruct * Converting partialConstruct to reconstruct in reduceStack * Adding `module.exports.reconstruct` Needed to make importing using the syntax shown in the README valid * revert package-lock.json file * Update readme file to remove reference to partialConstruct in explanation * reverting package-lock.json (using version in ret/master) * fix: make package-lock match main branch * fix: revert unintended changes to readme * run lint:fix * Update test file * Update reconstruct functionality and refactor the set token writer * Remove unecessary readme space change * Rename boolean variables * Fix (#25 (comment)) and add test cases * Resolve (#25 (comment)) and add test cases * Resolve (#25 (comment)) * fix #25 (comment), missing backslash escape * resolve #25 (comment) * Update lib/write-set-tokens.ts Co-authored-by: Charmander <~@charmander.me> * resolve #25 (comment) * Update README.md Co-authored-by: fent <fentbox@gmail.com> * Update write-set-tokens.ts * create script to generate set-lookup.ts * fix: remove error from unlinking nonexistant file * Revert to using runtime generation of set lookup * Revert .gitignore file * Revert tsconfig * using tsconfig and gitignore from remote rather than origin Co-authored-by: Jesse Wright <jesse@jesse-hp-laptop.local> Co-authored-by: fent <fentbox@gmail.com> Co-authored-by: Charmander <~@charmander.me>
PreviousNext