Skip to content

Commit 68fb084

Browse files
committed
Remove unnecessary characters from regex
1 parent d4dd8cd commit 68fb084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jquery/assert_select.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def assert_select_jquery(*args, &block)
5656
jquery_opt = args.first.is_a?(Symbol) ? args.shift : nil
5757
id = args.first.is_a?(String) ? escape_id(args.shift) : nil
5858

59-
target_pattern = "['\"\\[]#{id || '.*'}['\"\\]]"
59+
target_pattern = "['\"]#{id || '.*'}['\"]"
6060
method_pattern = "#{jquery_method || '\\w+'}"
6161
argument_pattern = jquery_opt ? "['\"]#{jquery_opt}['\"].*" : PATTERN_HTML
6262

0 commit comments

Comments
 (0)