Skip to content

Commit

Permalink
Merge pull request #971 from alphagov/fix-linting-issue
Browse files Browse the repository at this point in the history
Fix Style/RedundantRegexpEscape linting offence
  • Loading branch information
kevindew authored Jul 27, 2021
2 parents 4ecfd4a + 95228fd commit 601bba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/previews_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def download_text(dataset, datafile)

def numeric?(value)
value.to_s.match?(/\A
\-? # may be negative
-? # may be negative
(
\d+(\.\d+)? # digits, potential followed by decimal
|
Expand Down

0 comments on commit 601bba2

Please sign in to comment.