@folio-agent/widget 0.6.2 → 0.7.0
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/answer.js +1 -1
- package/package.json +1 -1
package/dist/answer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// handler が返す回答の形式(プレーンテキスト、記法はリンクの [表示する文字](http(s)://…) だけ)を描く。
|
|
2
|
-
// HTML は解釈せず、テキストノードと <a> を組み立てる。形式を守らせるのは handler の
|
|
2
|
+
// HTML は解釈せず、テキストノードと <a> を組み立てる。形式を守らせるのは handler の check_answer で、
|
|
3
3
|
// ここでは古い handler が URL をそのまま返した場合にだけ、その URL をリンクにする。
|
|
4
4
|
const TOKEN = /\[([^\]\n]+)\]\((https?:\/\/[^\s)]+)\)|https?:\/\/[^\s<>"'()「」『』【】、。]+/g;
|
|
5
5
|
const TRAILING_PUNCTUATION = /[.,;:!?)\]]+$/;
|