DEV: User UPPER_CASE for constants

This commit is contained in:
Robin Ward
2020-05-08 15:50:55 -04:00
parent da561a430d
commit 34e5f807ec
5 changed files with 10 additions and 10 deletions

View File

@@ -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"