Skip to content

Commit

Permalink
Fix regex for DIRECT_RENDERS
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwoo committed Jan 2, 2014
1 parent 073cac4 commit 448679a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jbuilder/dependency_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
DIRECT_RENDERS = /
\w+\.partial! # json.partial!
\(?\s* # optional parenthesis
(['"])([^""]+)\1 # quoted value
(['"])([^'"]+)\1 # quoted value
/x

# Matches:
Expand Down

0 comments on commit 448679a

Please sign in to comment.