Skip to content

Commit 8a70e1a

Browse files
committed
Fix backtracking issue in manage-layers path validation regex
1 parent 6057fa2 commit 8a70e1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/manage-layers/view/state/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import { ConfigurationVariable, LayerPathError, ManageLayersState } from './reducer';
1818

1919

20-
const pathValidationRegex = /^(\/?([a-zA-Z0-9-_])+)+$/;
20+
const pathValidationRegex = /^\/?[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/;
2121

2222
export type LayerValidation = {
2323
path: string;

0 commit comments

Comments
 (0)