Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit 5a55210

Browse files
dariyeclaude
andcommitted
Fix StandardRB lint: use match? instead of =~
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4559c5b commit 5a55210

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/llms_txt_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def extract_header(file_path)
8989
title = $1 || $2 || $3
9090
description = $4
9191
# If title is a variable reference (like `component`), resolve it
92-
if title =~ /\A[a-z_]+\z/
92+
if title.match?(/\A[a-z_]+\z/)
9393
content.match(/#{title}\s*=\s*"([^"]+)"/) { |m| title = m[1] }
9494
end
9595
[title, description]

0 commit comments

Comments
 (0)