GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: return empty array for empty string in list.split by amir-rezaei · Pull Request #2121 · postcss/postcss

Conversation

@amir-rezaei

@amir-rezaei amir-rezaei commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Description

This PR updates list.split in lib/list.js.

Details

  • Returns an empty array [] early when string is empty or falsy to prevent spurious empty element insertion when parsing empty CSS value strings.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ferkans-amir
fix: return empty array for empty string in list.split
5d6bccb
@ai
ai merged commit 10edf0b into postcss:main Jul 29, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ai

ai commented Jul 29, 2026

Copy link
Copy Markdown
Member

Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@claude claude Bot mentioned this pull request Aug 3, 2026
chore(deps-dev): bump postcss from 8.5.22 to 8.5.25 dimagi/open-chat-studio#4045
Merged
@lazerg lazerg mentioned this pull request Aug 6, 2026
Fix Rule#selectors losing the empty selector #2129
Merged
hanzo-dev pushed a commit to hanzoai/postcss that referenced this pull request Sep 9, 2026
@amir-rezaei @ferkans-amir
fix: return empty array for empty string in list.split (postcss#2121)
87b9ce6
Co-authored-by: ferkans-amir <[email protected]>
This was referenced Oct 22, 2026
[Historical PR] deps(npm): bump postcss from 8.5.23 to 8.5.25 in /web/client rennerdo30/bifrost-proxy#235
Closed
[Historical PR] deps(npm): bump postcss from 8.5.23 to 8.5.25 in /web/server rennerdo30/bifrost-proxy#236
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@amir-rezaei @ai @ferkans-amir
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.