mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:38:17 +08:00
DEV: prevent already initialized constant warning
This commit is contained in:
parent
78d443ad40
commit
c5c5bb4fad
|
@ -24,7 +24,7 @@ module Discourse
|
|||
end
|
||||
|
||||
class Utils
|
||||
URI_REGEXP = URI.regexp(%w{http https})
|
||||
URI_REGEXP ||= URI.regexp(%w{http https})
|
||||
|
||||
# Usage:
|
||||
# Discourse::Utils.execute_command("pwd", chdir: 'mydirectory')
|
||||
|
|
Loading…
Reference in New Issue
Block a user