mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
DEV: Prefer \A and \z over ^ and $ in regexes (#19936)
This commit is contained in:

committed by
GitHub

parent
f7907a3645
commit
666536cbd1
@ -35,7 +35,7 @@ class Stylesheet::Manager::Builder
|
||||
end
|
||||
end
|
||||
|
||||
rtl = @target.to_s =~ /_rtl$/
|
||||
rtl = @target.to_s =~ /_rtl\z/
|
||||
css, source_map =
|
||||
with_load_paths do |load_paths|
|
||||
Stylesheet::Compiler.compile_asset(
|
||||
|
Reference in New Issue
Block a user