blob: d803521b6c6029e758161aed3a0f667dc6e0a36e (
plain)
1
2
3
4
5
6
7
|
import XRegExp from "xregexp";
const timelineNameReg = XRegExp("^[-_\\p{L}]*$", "u");
export function validateTimelineName(name: string): boolean {
return timelineNameReg.test(name);
}
|