Use string interpolation

This commit is contained in:
gregoirenovel 2018-01-15 21:41:16 +01:00
parent 83be054884
commit 80ed589a17
10 changed files with 14 additions and 14 deletions

View file

@ -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