Skip to content

Commit

Permalink
resolve code-scanning#2 (#1631)
Browse files Browse the repository at this point in the history
  • Loading branch information
plantfansam committed Apr 17, 2024
1 parent 514aa78 commit a446199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics_api/lib/opentelemetry/metrics/meter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Meter
UP_DOWN_COUNTER = Instrument::UpDownCounter.new
OBSERVABLE_UP_DOWN_COUNTER = Instrument::ObservableUpDownCounter.new

NAME_REGEX = /^[a-zA-Z][-.\w]{0,62}$/
NAME_REGEX = /\A[a-zA-Z][-.\w]{0,62}\z/

private_constant(:COUNTER, :OBSERVABLE_COUNTER, :HISTOGRAM, :OBSERVABLE_GAUGE, :UP_DOWN_COUNTER, :OBSERVABLE_UP_DOWN_COUNTER)

Expand Down

0 comments on commit a446199

Please sign in to comment.