Skip to content
Browse files

more forgiving require formats

  • Loading branch information...
1 parent a0181de commit 0656888e52c6ed08eb6d99916abc1e8fc99534cd @sconover sconover committed with Jan 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/modulr/js_module.rb
View
2 lib/modulr/js_module.rb
@@ -52,7 +52,7 @@ def inspect
end
def identifier_valid?
- @valid ||= terms.all? { |t| t =~ /^([a-zA-Z]+|\.\.?)$/ }
+ @valid ||= terms.all? { |t| t =~ /^([-_\w]+|\.\.?)$/ }
end
def id

0 comments on commit 0656888

Please sign in to comment.
Something went wrong with that request. Please try again.