aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/digestor.rb
diff options
context:
space:
mode:
authorChristos Zisopoulos <christos@me.com>2012-08-30 13:01:25 +0200
committerChristos Zisopoulos <christos@me.com>2012-08-30 13:01:25 +0200
commit21bad7445b26f62992b494804b29b74c9769e87d (patch)
tree027f066724c5888b4d6000d9b2cbeea2986c749c /actionpack/lib/action_view/digestor.rb
parent8074f3b478a110236c8e12bc0678660a9231126b (diff)
downloadrails-21bad7445b26f62992b494804b29b74c9769e87d.tar.gz
rails-21bad7445b26f62992b494804b29b74c9769e87d.tar.bz2
rails-21bad7445b26f62992b494804b29b74c9769e87d.zip
`Digestor` ignores most whitespace when parsing `render` invocations
Diffstat (limited to 'actionpack/lib/action_view/digestor.rb')
-rw-r--r--actionpack/lib/action_view/digestor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/digestor.rb b/actionpack/lib/action_view/digestor.rb
index cfa864cdd4..58920e1e59 100644
--- a/actionpack/lib/action_view/digestor.rb
+++ b/actionpack/lib/action_view/digestor.rb
@@ -15,9 +15,9 @@ module ActionView
# render(topics) => render("topics/topic")
# render(message.topics) => render("topics/topic")
RENDER_DEPENDENCY = /
- render\s? # render, followed by an optional space
+ render\s* # render, followed by an optional space
\(? # start a optional parenthesis for the render call
- (partial:)?\s? # naming the partial, used with collection -- 1st capture
+ (partial:)?\s* # naming the partial, used with collection -- 1st capture
([@a-z"'][@a-z_\/\."']+) # the template name itself -- 2nd capture
/x