lib/xsd/ns.rb in rubyjedi-soap4r-1.5.8.20100619003610 vs lib/xsd/ns.rb in rubyjedi-soap4r-2.0.2.1

- old
+ new

@@ -1,6 +1,6 @@ -# encoding: ASCII-8BIT +# encoding: UTF-8 # XSD4R - XML Schema Namespace library # Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>. # This program is copyrighted free software by NAKAMURA, Hiroshi. You can # redistribute it and/or modify it under the same terms of Ruby's license; @@ -122,10 +122,10 @@ end false end # $1 and $2 are necessary. - ParseRegexp = Regexp.new('\A([^:]+)(?::(.+))?\z', nil, 'n') + ParseRegexp = Regexp.new('\A([^:]+)(?::(.+))?\z', nil) def parse(str, local = false) if ParseRegexp =~ str if (name = $2) and (ns = @tag2ns[$1]) return XSD::QName.new(ns, name)