Skip to content

Commit

Permalink
Fix indentation for improved readability in Parselly class
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Jan 26, 2025
1 parent e711c01 commit 9536daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parselly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def self.sanitize(selector)
result << escaped_hex(scanner.matched)
# Second character is a digit and first is `-`
elsif scanner.pos == 1 && scanner.scan(/\d/) &&
scanner.pre_match == '-'
scanner.pre_match == '-'
result << escaped_hex(scanner.matched)
# Alphanumeric characters, `-`, `_`
elsif scanner.scan(/[a-zA-Z0-9\-_]/)
Expand Down

0 comments on commit 9536daa

Please sign in to comment.