Skip to content

Commit 132b983

Browse files
committed
RUBY-220
* Use \A instead of ^ for regex in case statement.
1 parent 9d19fc8 commit 132b983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cassandra/cluster/schema/cql_type_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def lookup_type(node, types)
7272
Cassandra::Types.tuple(*node.children.map { |t| lookup_type(t, types)})
7373
when 'empty' then
7474
Cassandra::Types.custom('org.apache.cassandra.db.marshal.EmptyType')
75-
when /^'/ then
75+
when /\A'/ then
7676
# Custom type.
7777
Cassandra::Types.custom(node.name[1..-2])
7878
else

0 commit comments

Comments
 (0)