ezmedicationinput 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -37775,10 +37775,11 @@ function parseSigSegments(input, options) {
|
|
|
37775
37775
|
continue;
|
|
37776
37776
|
}
|
|
37777
37777
|
const nextToken = tokens[index + 1];
|
|
37778
|
-
const
|
|
37778
|
+
const tokenInsideDateList = dateSpans.some(
|
|
37779
37779
|
(span) => token.sourceStart >= span.start && token.sourceEnd <= span.end
|
|
37780
37780
|
);
|
|
37781
|
-
|
|
37781
|
+
const dateListSeparator = tokenInsideDateList && (token.original === "," || normalizeSegmentLexeme(token) === "and" || normalizeSegmentLexeme(token) === "\u0E41\u0E25\u0E30");
|
|
37782
|
+
if (dateListSeparator) {
|
|
37782
37783
|
scannedOffset = token.sourceEnd;
|
|
37783
37784
|
continue;
|
|
37784
37785
|
}
|
package/dist/index.js
CHANGED
|
@@ -37619,10 +37619,11 @@ function parseSigSegments(input, options) {
|
|
|
37619
37619
|
continue;
|
|
37620
37620
|
}
|
|
37621
37621
|
const nextToken = tokens[index + 1];
|
|
37622
|
-
const
|
|
37622
|
+
const tokenInsideDateList = dateSpans.some(
|
|
37623
37623
|
(span) => token.sourceStart >= span.start && token.sourceEnd <= span.end
|
|
37624
37624
|
);
|
|
37625
|
-
|
|
37625
|
+
const dateListSeparator = tokenInsideDateList && (token.original === "," || normalizeSegmentLexeme(token) === "and" || normalizeSegmentLexeme(token) === "\u0E41\u0E25\u0E30");
|
|
37626
|
+
if (dateListSeparator) {
|
|
37626
37627
|
scannedOffset = token.sourceEnd;
|
|
37627
37628
|
continue;
|
|
37628
37629
|
}
|