Skip to content

Commit

Permalink
0-10-stable: [snapshot]
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Jun 6, 2018
1 parent 7f392e4 commit 0c715fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/nodes/literal.rb
Expand Up @@ -73,7 +73,7 @@ class RegexpNode < Base

def compile
old_flags = flags
flags = flags.gsub(/[^gimuy]/, '') if flags
flags = flags.gsub(/[^imuy]/, '') if flags

if old_flags != flags
warn "invalid js flags found #{old_flags.inspect}, replaced with #{flags.inspect}"
Expand Down

0 comments on commit 0c715fc

Please sign in to comment.