fix
This commit is contained in:
@ -25,13 +25,6 @@ export class Element {
|
||||
}
|
||||
|
||||
public constructor (name: string, parent = '') {
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
const regex = /^[a-z_][a-z_0-9]+$/iu;
|
||||
|
||||
if (!regex.test (name))
|
||||
throw new Error ('invalid name specified');
|
||||
>>>>>>> f553396eee29e1e0820624345e5d23dc3471a4a4
|
||||
this.name = name;
|
||||
this.parent_name = parent;
|
||||
}
|
||||
|
Reference in New Issue
Block a user