Skip to content

Commit

Permalink
Updated save shared shoulda to handle block params
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Huibonhoa committed Dec 9, 2010
1 parent 53cb47c commit b198d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/save shared should or context.tmCommand
Expand Up @@ -10,7 +10,7 @@ input = STDIN.read
if input =~ /shared_should/i or input =~ /shared_context_should/
out = input.sub('shared_should', '').sub('shared_context_should', '')
out = out.sub(/\s*do\s*$/, '')
out = out.sub(/\s*do\s*(|.*|)?\s*$/, '')
out = out.gsub(/[^\w_\s]/, '')
out = out.squeeze('_ ').strip
out = out.gsub(/\s/, '_')
Expand Down

0 comments on commit b198d4f

Please sign in to comment.