Skip to content

Commit 3b0a822

Browse files
author
Austin Ziegler
committed
Fixing Ruby 1.9.2 -wW2 warnings (bug #28588)
[#28588] Regexp warning under Ruby 1.9.2-p0.
1 parent 75bec76 commit 3b0a822

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/ldap/filter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def to_ber
533533
when :ex
534534
seq = []
535535

536-
unless @left =~ /^([-;\d\w]*)(:dn)?(:(\w+|[.\d\w]+))?$/
536+
unless @left =~ /^([-;\w]*)(:dn)?(:(\w+|[.\w]+))?$/
537537
raise Net::LDAP::LdapError, "Bad attribute #{@left}"
538538
end
539539
type, dn, rule = $1, $2, $4
@@ -751,7 +751,7 @@ def parse_paren_expression(scanner)
751751
# This parses a given expression inside of parentheses.
752752
def parse_filter_branch(scanner)
753753
scanner.scan(/\s*/)
754-
if token = scanner.scan(/[-\w\d_:.]*[\d\w]/)
754+
if token = scanner.scan(/[-\w:.]*[\w]/)
755755
scanner.scan(/\s*/)
756756
if op = scanner.scan(/<=|>=|!=|:=|=/)
757757
scanner.scan(/\s*/)

0 commit comments

Comments
 (0)