From 34d7371eb0a5dac4cce5319d807365123179218a Mon Sep 17 00:00:00 2001 From: Shuhei Iitsuka Date: Tue, 30 Nov 2021 14:06:23 +0900 Subject: [PATCH] Export the parser threshold value (#26) --- javascript/src/parser.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/javascript/src/parser.ts b/javascript/src/parser.ts index 362901aa..6b803a95 100644 --- a/javascript/src/parser.ts +++ b/javascript/src/parser.ts @@ -20,7 +20,10 @@ import {model as jaKNBCModel} from './data/models/ja-knbc'; import {parseFromString} from './dom'; import {bisectRight, SEP} from './utils'; -const DEFAULT_THRES = 1000; +/** + * The default threshold value for the parser. + */ +export const DEFAULT_THRES = 1000; // We could use `Node.TEXT_NODE` and `Node.ELEMENT_NODE` in a browser context, // but we define the same here for Node.js environments.