Skip to content

Commit

Permalink
Bump jasmine version
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Jul 20, 2024
1 parent 4bfeea6 commit 2b1eab1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

<a href="https://github.com/slevithan/regex#readme"><img src="https://github.com/slevithan/regex/raw/main/regex-logo.svg" height="130" alt="regex logo"></a>

[![Build Status](https://github.com/slevithan/regex/workflows/CI/badge.svg)](https://github.com/slevithan/regex/actions)
[![Bundle Size](https://deno.bundlejs.com/badge?q=regex&treeshake=[*])](https://bundlejs.com/?q=regex&treeshake=[*])
[![build](https://github.com/slevithan/regex/workflows/CI/badge.svg)](https://github.com/slevithan/regex/actions)
[![npm](https://img.shields.io/npm/v/regex)](https://www.npmjs.com/package/regex)
[![size](https://deno.bundlejs.com/badge?q=regex&treeshake=[*])](https://bundlejs.com/?q=regex&treeshake=[*])
</div>

`regex` creates **readable, high performance, *native* JavaScript regular expressions** with advanced features and best practices built-in. It's lightweight and supports all ES2024+ regex functionality. It can also be used dependency-free as a [Babel plugin](https://github.com/slevithan/babel-plugin-transform-regex).
Expand Down
20 changes: 11 additions & 9 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
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"esbuild": "^0.23.0",
"jasmine": "^5.1.0",
"jasmine": "^5.2.0",
"rimraf": "^6.0.1",
"typescript": "^5.5.3"
}
Expand Down
10 changes: 5 additions & 5 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<title>regex specs</title>

<!-- Jasmine -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.1.2/lib/jasmine-core/jasmine.css">
<script src="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.1.2/lib/jasmine-core/jasmine.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.1.2/lib/jasmine-core/jasmine-html.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.1.2/lib/jasmine-core/boot0.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.2.0/lib/jasmine-core/jasmine.css">
<script src="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.2.0/lib/jasmine-core/jasmine.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.2.0/lib/jasmine-core/jasmine-html.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.2.0/lib/jasmine-core/boot0.js"></script>
<script>
jasmine.getEnv().configure({random: false});
</script>
<script src="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.1.2/lib/jasmine-core/boot1.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jasmine/jasmine@5.2.0/lib/jasmine-core/boot1.js"></script>

<!-- Library -->
<script src="../dist/regex.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion spec/subroutines-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('subroutines', () => {
});

// `(?:)` separators can be added by the flag x preprocessor
it('should not allow anything other than named groups, (?:), and whitespace', () => {
it('should not allow anything other than named groups, whitespace, comments, and (?:) at the top level', () => {
expect(() => regex`(?(DEFINE)(?<a>)?)`).toThrow();
expect(() => regex`(?(DEFINE)(?<a>).)`).toThrow();
expect(() => regex`(?(DEFINE).(?<a>))`).toThrow();
Expand Down

0 comments on commit 2b1eab1

Please sign in to comment.