mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 10:25:41 +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…
x
Reference in New Issue
Block a user