WIP
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const REGEX =
|
||||
/^([1-8kqrbnp]+\/)+[1-8kqrbnp]+ [wb] ([kq]+|-) ([a-h1-8]{2}|-) [01] \d+$/i;
|
||||
/^([1-8kqrbnp]+\/)+[1-8kqrbnp]+ [wb] ([kq]+|-) ([a-h1-8]{2}|-) \d+ \d+$/i;
|
||||
|
||||
const isFEN = (data: string) => {
|
||||
return REGEX.test(data.trim());
|
||||
|
||||
Reference in New Issue
Block a user