Skip to content

Conversation

@cardmagic
Copy link
Owner

Summary

  • Skip empty/blank tags with guard clauses to prevent regex catastrophic backtracking
  • Empty tags like :"" would create patterns like <(rss:|atom:)?(.*?)> causing 100% CPU and process hang

Test plan

  • Added test/base/empty_tag_test.rb with 3 tests for empty/blank tags
  • All 19 tests pass

Fixes #16

Empty tags like :"" create regex patterns that cause catastrophic
backtracking and 100% CPU usage. Skip them with a guard clause.

Fixes #16
@cardmagic cardmagic merged commit 0f2e7e6 into master Dec 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

100% cpu and hanging process on blank item tag

2 participants