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