@atproto/api 0.7.0 → 0.7.1
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/CHANGELOG.md +6 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
- package/src/rich-text/detection.ts +1 -1
- package/tests/rich-text-detection.test.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1944](https://github.com/bluesky-social/atproto/pull/1944) [`60deea17`](https://github.com/bluesky-social/atproto/commit/60deea17622f7c574c18432a55ced4e1cdc1b3a1) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Strip trailing colon from URLs in rich-text facet detection.
|
|
8
|
+
|
|
3
9
|
## 0.7.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -28999,7 +28999,7 @@ function detectFacets(text) {
|
|
|
28999
28999
|
}
|
|
29000
29000
|
const start = text.utf16.indexOf(match[2], match.index);
|
|
29001
29001
|
const index = { start, end: start + match[2].length };
|
|
29002
|
-
if (/[
|
|
29002
|
+
if (/[.,;:!?]$/.test(uri2)) {
|
|
29003
29003
|
uri2 = uri2.slice(0, -1);
|
|
29004
29004
|
index.end--;
|
|
29005
29005
|
}
|