mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: User UPPER_CASE for constants
This commit is contained in:
@@ -17,9 +17,9 @@ task 'javascript:update_constants' => :environment do
|
||||
// DO NOT EDIT THIS FILE!!!
|
||||
// Update it by running `rake javascript:update_constants`
|
||||
|
||||
export const SearchPriorities = #{Searchable::PRIORITIES.to_json};
|
||||
export const SEARCH_PRIORITIES = #{Searchable::PRIORITIES.to_json};
|
||||
|
||||
export const SearchPhraseRegexp = '#{Search::PHRASE_MATCH_REGEXP_PATTERN}';
|
||||
export const SEARCH_PHRASE_REGEXP = '#{Search::PHRASE_MATCH_REGEXP_PATTERN}';
|
||||
JS
|
||||
|
||||
output_path = "#{Rails.root}/app/assets/javascripts/discourse/app/lib/constants.js"
|
||||
|
||||
Reference in New Issue
Block a user