mirror of
https://github.com/discourse/discourse.git
synced 2025-06-19 22:23:04 +08:00
DEV: Extensively use startsWith()
(#17540)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
function resolve(path) {
|
||||
if (path.indexOf("settings") === 0 || path.indexOf("transformed") === 0) {
|
||||
if (path.startsWith("settings") || path.startsWith("transformed")) {
|
||||
return `this.${path}`;
|
||||
}
|
||||
return path;
|
||||
|
Reference in New Issue
Block a user