Skip to content

Commit

Permalink
Merge pull request #155 from Warashi/fix/invalid-regex-on-darwin
Browse files Browse the repository at this point in the history
fix: invalid regex on darwin
  • Loading branch information
akirak authored Mar 18, 2024
2 parents d641c25 + 7cdf342 commit 4e1f872
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ concurrency:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ concurrency:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/elisp/parseElispHeaders.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ with builtins; let
dropWhile = import ../utils/dropWhile.nix;

# Regular expression patterns
descriptionRegex = ";;;.+ --- (.+?)";
descriptionRegex = ";;;.+ --- (.+)";
magicHeaderRegex = "(.+)-\\*-.+-\\*-[[:space:]]*";
headerRegex = ";;[[:space:]]*(.*[^[:space:]]):([[:space:]]*.*)?";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/gitUrlToAttrs.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
s:
with builtins; let
githubMatch = match "https://github.com/(.+)/(.+?)" s;
githubMatch = match "https://github.com/(.+)/(.+)" s;
in
if githubMatch != null
then {
Expand Down

0 comments on commit 4e1f872

Please sign in to comment.