mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 20:58:12 +08:00
improve category and label name validation (#1034)
This commit is contained in:
@@ -182,3 +182,8 @@ export function createWritableAnnotationDimensions(world, crossfilter) {
|
||||
}, crossfilter);
|
||||
return crossfilter;
|
||||
}
|
||||
|
||||
const legalNames = /^\w+$/;
|
||||
export function isLegalAnnotationName(name) {
|
||||
return legalNames.test(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user