bajo-extra 2.4.0 → 2.5.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/index.js CHANGED
@@ -371,6 +371,10 @@ async function factory (pkgName) {
371
371
  return /^[a-f0-9]{64}$/i.test(text)
372
372
  }
373
373
 
374
+ isHtmlLink = (text) => {
375
+ return /<a\s+[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/gi.test(text)
376
+ }
377
+
374
378
  encrypt = async (text, { type = 'short', subType = 'qr' } = {}) => {
375
379
  const { importPkg } = this.app.bajo
376
380
  const { ShortCrypt } = await importPkg('bajoExtra:short-crypt')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo-extra",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Extra package for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-05-03
4
+
5
+ - [2.5.0] Add ```isHtmlLink```
6
+
3
7
  ## 2026-05-02
4
8
 
5
9
  - [2.4.0] Add ```sharp``` as library