Skip to content

Commit

Permalink
Remove redundant #pack call
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynetics committed Feb 1, 2023
1 parent 6f68471 commit 6cf1cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/regexp_parser/scanner/property.rl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
text = copy(data, ts-1, te)
type = (text[1] == 'P') ^ (text[3] == '^') ? :nonproperty : :property

name = data[ts+2..te-2].pack('c*').gsub(/[\^\s_\-]/, '').downcase
name = text[3..-2].gsub(/[\^\s_\-]/, '').downcase

token = self.class.short_prop_map[name] || self.class.long_prop_map[name]
validation_error(:property, name) unless token
Expand Down

0 comments on commit 6cf1cdf

Please sign in to comment.