nestorInc/jukebox — comment on commit 4671956bd322271e0f98bcd0bcef6d5b8f3ee852
File: jsonManager.rb line 126
By moustik:

I'd use a more-or-less globally defined dictionnary to register the substitutions :
{ 'pattern': 'substitution', .... } (python style sorry)

Then make the gsub use that dict.