summaryrefslogtreecommitdiff
path: root/test/scanners/ruby/regexp.in.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/scanners/ruby/regexp.in.rb')
-rw-r--r--test/scanners/ruby/regexp.in.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/scanners/ruby/regexp.in.rb b/test/scanners/ruby/regexp.in.rb
new file mode 100644
index 0000000..956e6b8
--- /dev/null
+++ b/test/scanners/ruby/regexp.in.rb
@@ -0,0 +1,5 @@
+# Regexp or division?
+some_string.to_i /\s+/
+some_string.split / +/ this is a regexp after a division /
+some_string.split / + / this one, too /
+some_string.split /- / # and this one is a regexp without division \ No newline at end of file