Update CAN_EDIT_SUFFIX.

pull/146/head
ruibaby 2019-04-23 00:26:28 +08:00
parent 7810637da4
commit 42ec47ae2f
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public interface ThemeService {
/**
* 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.

View File

@ -573,7 +573,7 @@ public class ThemeServiceImpl implements ThemeService {
// Check suffix
for (String suffix : CAN_EDIT_SUFFIX) {
if (path.endsWith(suffix)) {
if (path.toString().endsWith(suffix)) {
return true;
}
}