Skip to content

Commit a446199

Browse files
authored
resolve code-scanning#2 (#1631)
1 parent 514aa78 commit a446199

File tree

1 file changed

+1
-1
lines changed
  • metrics_api/lib/opentelemetry/metrics

1 file changed

+1
-1
lines changed

metrics_api/lib/opentelemetry/metrics/meter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Meter
1515
UP_DOWN_COUNTER = Instrument::UpDownCounter.new
1616
OBSERVABLE_UP_DOWN_COUNTER = Instrument::ObservableUpDownCounter.new
1717

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

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

0 commit comments

Comments
 (0)