diff options
| author | Ellis KenyĆ <elken@users.noreply.github.com> | 2024-03-31 04:29:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-30 20:29:39 -0700 |
| commit | b776ed96b1a980af284c8fb07a8db387c1e6c358 (patch) | |
| tree | c570a6f8be6baaec003b884a1cad71cfc3fd0607 /.github | |
| parent | c7040a6f6e60abf22225df91415df76f3f739cf1 (diff) | |
Prevent null issues when strings are unequal (#290)
In the case where s2 is larger than s1, this errors because the index is
out of range.
A good testcase is the below
```lisp
(apheleia--align-point
" <div class=\"left-[40rem] fixed inset-y-0 right-0 z-0 hidden lg:block xl:left-[50rem]\">\n <svg\n"
"<div class=\"left-[40rem] fixed inset-y-0 right-0 z-0 hidden lg:block xl:left-[50rem]\">\n <svg"
6)
```
If I've implemented the indexing wrong, do let me know but this seems to
work just fine now for `mix` (the formatter that triggered this)
---------
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/lint.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2d2340d..0c8e88a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,4 +22,4 @@ jobs: env: VERSION: ${{ matrix.emacs_version }} run: >- - make docker CMD="make lint lint-changelog" + make docker CMD="make unit lint lint-changelog" |
