diff --git a/src/components/data-entry/utils.tsx b/src/components/data-entry/utils.tsx index 9b782344..05ad5c6d 100644 --- a/src/components/data-entry/utils.tsx +++ b/src/components/data-entry/utils.tsx @@ -130,7 +130,7 @@ export const getDelimiter = (input: string): RegExp | undefined => { space && space.index && (!comma || (comma.index && comma.index > space.index)) && - (!hyphen || (hyphen.index && space.index > space.index)) + (!hyphen || (hyphen.index && space.index > hyphen.index)) ) { return new RegExp(/\s/); } else {