mirror of https://github.com/halo-dev/halo
Update CAN_EDIT_SUFFIX.
parent
7810637da4
commit
42ec47ae2f
|
@ -38,7 +38,7 @@ public interface ThemeService {
|
||||||
/**
|
/**
|
||||||
* The type of file that can be modified.
|
* The type of file that can be modified.
|
||||||
*/
|
*/
|
||||||
String[] CAN_EDIT_SUFFIX = {"ftl", "css", "js"};
|
String[] CAN_EDIT_SUFFIX = {".ftl", ".css", ".js", ".yaml", ".yml", ".properties"};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* These file names cannot be displayed.
|
* These file names cannot be displayed.
|
||||||
|
|
|
@ -573,7 +573,7 @@ public class ThemeServiceImpl implements ThemeService {
|
||||||
|
|
||||||
// Check suffix
|
// Check suffix
|
||||||
for (String suffix : CAN_EDIT_SUFFIX) {
|
for (String suffix : CAN_EDIT_SUFFIX) {
|
||||||
if (path.endsWith(suffix)) {
|
if (path.toString().endsWith(suffix)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue