Skip to content

Commit

Permalink
Freeze Regexp constant
Browse files Browse the repository at this point in the history
  • Loading branch information
jperville authored and gkellogg committed Sep 26, 2017
1 parent cf27f0c commit 75b7484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/model/uri.rb
Expand Up @@ -81,7 +81,7 @@ class URI
IRI = Regexp.compile("^#{SCHEME}:(?:#{IHIER_PART})(?:\\?#{IQUERY})?(?:\\##{IFRAGMENT})?$").freeze

# Split an IRI into it's component parts
IRI_PARTS = /^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(\?[^#]*)?(#.*)?$/
IRI_PARTS = /^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(\?[^#]*)?(#.*)?$/.freeze

# Remove dot expressions regular expressions
RDS_2A = /^\.?\.\/(.*)$/.freeze
Expand Down

0 comments on commit 75b7484

Please sign in to comment.