mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
DEV: User UPPER_CASE for constants
This commit is contained in:
parent
da561a430d
commit
34e5f807ec
5 changed files with 10 additions and 10 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue