@drodil/backstage-plugin-qeta-common 3.2.0 → 3.2.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/dist/index.d.ts +1 -1
- package/dist/tags.cjs.js +1 -1
- package/dist/tags.cjs.js.map +1 -1
- package/dist/tags.esm.js +1 -1
- package/dist/tags.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -268,7 +268,7 @@ interface StatisticsResponse {
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
declare const TAGS_REGEX: RegExp;
|
|
271
|
-
declare const filterTags: (input?: null | string | string[]) => string[]
|
|
271
|
+
declare const filterTags: (input?: null | string | string[]) => string[];
|
|
272
272
|
|
|
273
273
|
declare const truncate: (str: string, n: number) => string;
|
|
274
274
|
declare const findUserMentions: (text: string) => string[];
|
package/dist/tags.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const TAGS_REGEX = new RegExp("^[a-z0-9+#]+((\\-|_)[a-z0-9+#_]+)*$");
|
|
4
4
|
const filterTags = (input) => {
|
|
5
5
|
if (!input) {
|
|
6
|
-
return
|
|
6
|
+
return [];
|
|
7
7
|
}
|
|
8
8
|
return (Array.isArray(input) ? input : input.split(",")).filter(
|
|
9
9
|
(v) => v.length > 0 && v.length < 255 && TAGS_REGEX.test(v)
|
package/dist/tags.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.cjs.js","sources":["../src/tags.ts"],"sourcesContent":["export const TAGS_REGEX = new RegExp('^[a-z0-9+#]+((\\\\-|_)[a-z0-9+#_]+)*$');\n\nexport const filterTags = (input?: null | string | string[]) => {\n if (!input) {\n return
|
|
1
|
+
{"version":3,"file":"tags.cjs.js","sources":["../src/tags.ts"],"sourcesContent":["export const TAGS_REGEX = new RegExp('^[a-z0-9+#]+((\\\\-|_)[a-z0-9+#_]+)*$');\n\nexport const filterTags = (input?: null | string | string[]) => {\n if (!input) {\n return [];\n }\n return (Array.isArray(input) ? input : input.split(',')).filter(\n v => v.length > 0 && v.length < 255 && TAGS_REGEX.test(v),\n );\n};\n"],"names":[],"mappings":";;AAAa,MAAA,UAAA,GAAa,IAAI,MAAA,CAAO,qCAAqC,EAAA;AAE7D,MAAA,UAAA,GAAa,CAAC,KAAqC,KAAA;AAC9D,EAAA,IAAI,CAAC,KAAO,EAAA;AACV,IAAA,OAAO,EAAC,CAAA;AAAA,GACV;AACA,EAAQ,OAAA,CAAA,KAAA,CAAM,QAAQ,KAAK,CAAA,GAAI,QAAQ,KAAM,CAAA,KAAA,CAAM,GAAG,CAAG,EAAA,MAAA;AAAA,IACvD,CAAA,CAAA,KAAK,EAAE,MAAS,GAAA,CAAA,IAAK,EAAE,MAAS,GAAA,GAAA,IAAO,UAAW,CAAA,IAAA,CAAK,CAAC,CAAA;AAAA,GAC1D,CAAA;AACF;;;;;"}
|
package/dist/tags.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const TAGS_REGEX = new RegExp("^[a-z0-9+#]+((\\-|_)[a-z0-9+#_]+)*$");
|
|
2
2
|
const filterTags = (input) => {
|
|
3
3
|
if (!input) {
|
|
4
|
-
return
|
|
4
|
+
return [];
|
|
5
5
|
}
|
|
6
6
|
return (Array.isArray(input) ? input : input.split(",")).filter(
|
|
7
7
|
(v) => v.length > 0 && v.length < 255 && TAGS_REGEX.test(v)
|
package/dist/tags.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.esm.js","sources":["../src/tags.ts"],"sourcesContent":["export const TAGS_REGEX = new RegExp('^[a-z0-9+#]+((\\\\-|_)[a-z0-9+#_]+)*$');\n\nexport const filterTags = (input?: null | string | string[]) => {\n if (!input) {\n return
|
|
1
|
+
{"version":3,"file":"tags.esm.js","sources":["../src/tags.ts"],"sourcesContent":["export const TAGS_REGEX = new RegExp('^[a-z0-9+#]+((\\\\-|_)[a-z0-9+#_]+)*$');\n\nexport const filterTags = (input?: null | string | string[]) => {\n if (!input) {\n return [];\n }\n return (Array.isArray(input) ? input : input.split(',')).filter(\n v => v.length > 0 && v.length < 255 && TAGS_REGEX.test(v),\n );\n};\n"],"names":[],"mappings":"AAAa,MAAA,UAAA,GAAa,IAAI,MAAA,CAAO,qCAAqC,EAAA;AAE7D,MAAA,UAAA,GAAa,CAAC,KAAqC,KAAA;AAC9D,EAAA,IAAI,CAAC,KAAO,EAAA;AACV,IAAA,OAAO,EAAC,CAAA;AAAA,GACV;AACA,EAAQ,OAAA,CAAA,KAAA,CAAM,QAAQ,KAAK,CAAA,GAAI,QAAQ,KAAM,CAAA,KAAA,CAAM,GAAG,CAAG,EAAA,MAAA;AAAA,IACvD,CAAA,CAAA,KAAK,EAAE,MAAS,GAAA,CAAA,IAAK,EAAE,MAAS,GAAA,GAAA,IAAO,UAAW,CAAA,IAAA,CAAK,CAAC,CAAA;AAAA,GAC1D,CAAA;AACF;;;;"}
|