Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: slevithan/regex
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.0
Choose a base ref
...
head repository: slevithan/regex
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 4,711 additions and 2,882 deletions.
  1. +23 −0 .github/workflows/main.yml
  2. +4 −8 .gitignore
  3. +7 −0 CHANGELOG.md
  4. +1 −1 LICENSE
  5. +481 −191 README.md
  6. +1 −0 media/regex-logo-dark.svg
  7. +1 −0 media/regex-logo.svg
  8. +0 −924 package-lock.json
  9. +41 −13 package.json
  10. +914 −0 pnpm-lock.yaml
  11. +0 −58 regex-logo.svg
  12. +15 −0 scripts/postbuild.js
  13. +0 −52 spec/atomic-groups-spec.js
  14. +170 −0 spec/atomic.spec.js
  15. +0 −77 spec/backcompat-spec.js
  16. +78 −0 spec/backcompat.spec.js
  17. +0 −33 spec/flag-n-spec.js
  18. +33 −0 spec/flag-n.spec.js
  19. +0 −224 spec/flag-x-spec.js
  20. +361 −0 spec/flag-x.spec.js
  21. +6 −1 spec/helpers/browsers.js
  22. +16 −7 spec/helpers/features.js
  23. +7 −2 spec/helpers/global.mjs
  24. +18 −16 spec/index.html
  25. +82 −0 spec/interpolate-number.spec.js
  26. +0 −320 spec/interpolate-partial-spec.js
  27. +344 −0 spec/interpolate-pattern.spec.js
  28. +11 −13 spec/{interpolate-regexp-spec.js → interpolate-regexp.spec.js}
  29. +36 −24 spec/{interpolate-string-spec.js → interpolate-string.spec.js}
  30. +0 −28 spec/partial-spec.js
  31. +38 −0 spec/pattern.spec.js
  32. 0 spec/{regex-syntax-spec.js → regex-syntax.spec.js}
  33. +0 −85 spec/regex-tag-spec.js
  34. +175 −0 spec/regex-tag.spec.js
  35. +86 −0 spec/rewrite.spec.js
  36. +0 −106 spec/subroutines-spec.js
  37. +325 −0 spec/subroutines.spec.js
  38. +1 −1 spec/support/jasmine.json
  39. +21 −0 spec/types/regex-tag.typespec.ts
  40. +13 −0 spec/types/tsconfig.test.json
  41. +0 −77 src/atomic-groups.js
  42. +221 −0 src/atomic.js
  43. +12 −11 src/backcompat.js
  44. +18 −7 src/flag-n.js
  45. +67 −24 src/flag-x.js
  46. +0 −233 src/index.js
  47. +2 −0 src/internals.js
  48. +0 −29 src/partial.js
  49. +45 −0 src/pattern.js
  50. +375 −0 src/regex.js
  51. +98 −0 src/subclass.js
  52. +276 −133 src/subroutines.js
  53. +33 −0 src/utils-internals.js
  54. +255 −184 src/utils.js
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 23
- 20
- 18
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm test
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
dist

# Installed npm modules
node_modules
dist
/types
/temp

# Folder view configuration/cache files
# Folder view configuration files
.DS_Store
desktop.ini
Thumbs.db

# Temp files
temp
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Unreleased changes

-

## Released changes

Changes for released versions are tracked on the GitHub [releases](https://github.com/slevithan/regex/releases) page.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Steven Levithan
Copyright (c) 2025 Steven Levithan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Loading