relaton / relaton-iso

RelatonIso: ISO Standards metadata using the BibliographicItem model
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Regex in isobib_search_filter #30

Closed andrew2net closed 6 years ago

andrew2net commented 6 years ago

@opoudjis do you know what is the last slash in regex for ^(ISO|IEC)[^0-9]*\s[0-9-]+:[0-9]+/? /lib/isobib/iso_bibliography.rb:66

      def isobib_search_filter(code)
        docidrx = %r{^(ISO|IEC)[^0-9]*\s[0-9-]+}
        corrigrx = %r{^(ISO|IEC)[^0-9]*\s[0-9-]+:[0-9]+/}
andrew2net commented 6 years ago

ok, I understand it