This commit is contained in:
Brian Peiris 2018-07-09 21:18:02 -07:00
Родитель e8d0e69f4d
Коммит a2ee93c908
5 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -156,7 +156,7 @@ class AssetExplorerPanelContainer extends Component {
const folderName = this.state.newFolderName;
const directoryURI = this.state.selectedDirectory || this.state.tree.uri;
// eslint-disable-next-line
// eslint-disable-next-line no-useless-escape
if (!/^[0-9a-zA-Z\^\&\'\@\{\}\[\]\,\$\=\!\-\#\(\)\.\%\+\~\_ ]+$/.test(folderName)) {
alert('Invalid folder name. The following characters are not allowed: / : * ? " < > |');
return;

Просмотреть файл

@ -176,7 +176,7 @@ class FileDialogContainer extends Component {
const folderName = this.state.newFolderName;
const directoryURI = this.state.selectedDirectory || this.state.tree.uri;
// eslint-disable-next-line
// eslint-disable-next-line no-useless-escape
if (!/^[0-9a-zA-Z\^\&\'\@\{\}\[\]\,\$\=\!\-\#\(\)\.\%\+\~\_ ]+$/.test(folderName)) {
alert('Invalid folder name. The following characters are not allowed: / : * ? " < > |');
return;
@ -205,7 +205,7 @@ class FileDialogContainer extends Component {
} else {
let fileName = this.state.fileName;
// eslint-disable-next-line
// eslint-disable-next-line no-useless-escape
if (!/^[0-9a-zA-Z\^\&\'\@\{\}\[\]\,\$\=\!\-\#\(\)\.\%\+\~\_ ]+$/.test(fileName)) {
alert('Invalid file name. The following characters are not allowed: / : * ? " < > |');
return;

Просмотреть файл

@ -180,7 +180,7 @@ export default class History {
cmd = this.redo();
}
} else {
// eslint-disable-next-line
// eslint-disable-next-line no-constant-condition
while (true) {
cmd = this.undos[this.undos.length - 1]; // next cmd to pop

Просмотреть файл

@ -176,7 +176,7 @@ export async function loadSerializedScene(sceneDef, baseURL, addComponent, isRoo
if (inherits) {
const inheritedSceneURL = new URL(inherits, baseURL);
// eslint-disable-next-line
// eslint-disable-next-line no-use-before-define
scene = await loadScene(inheritedSceneURL.href, addComponent, false);
if (isRoot) {

Просмотреть файл

@ -29,7 +29,7 @@ async function getProjectHierarchy(projectPath) {
const directoryEntries = await fs.readdir(filePath);
for (const childEntry of directoryEntries) {
// eslint-disable-next-line
// eslint-disable-next-line no-useless-escape
if (/(^|\/)\.[^\/\.]/g.test(childEntry)) {
continue;
}