Use string interpolation
This commit is contained in:
parent
83be054884
commit
80ed589a17
10 changed files with 14 additions and 14 deletions
|
@ -9,7 +9,7 @@ class FindDubiousProceduresJob < ApplicationJob
|
|||
def perform(*args)
|
||||
# \\y is a word boundary
|
||||
forbidden_regexp = FORBIDDEN_KEYWORDS
|
||||
.map { |keyword| '\\y' + keyword + '\\y' }
|
||||
.map { |keyword| "\\y#{keyword}\\y" }
|
||||
.join('|')
|
||||
|
||||
# ~* -> case insensitive regexp match
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue