This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/shared/utils/indexCharacters.js
Saumya Pandey 985f0da674 fix: Move collection index validation logic to a context assert function (#2116)
* Abstract validation logic for readability

* Add index validation in collections.move

* Add tests
2021-05-09 22:30:37 -07:00

5 lines
101 B
JavaScript

// @flow
export const validateIndexCharacters = (index: string) =>
/^[\x21-\x7E]+$/i.test(index);