We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0181de commit 0656888Copy full SHA for 0656888
lib/modulr/js_module.rb
@@ -52,7 +52,7 @@ def inspect
52
end
53
54
def identifier_valid?
55
- @valid ||= terms.all? { |t| t =~ /^([a-zA-Z]+|\.\.?)$/ }
+ @valid ||= terms.all? { |t| t =~ /^([-_\w]+|\.\.?)$/ }
56
57
58
def id
0 commit comments