express-ext 0.6.1 → 0.6.2
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/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -366,7 +366,7 @@ function escapeHTML(input) {
|
|
|
366
366
|
exports.escapeHTML = escapeHTML
|
|
367
367
|
function generateChip(value, text, noClose, hasStar) {
|
|
368
368
|
var s = noClose ? "" : '<span class="close" onclick="removeChip(event)"></span>'
|
|
369
|
-
var t = hasStar ? '<i class="star
|
|
369
|
+
var t = hasStar ? '<i class="star"></i>' : ""
|
|
370
370
|
return '<div class="chip" data-value="' + escapeHTML(value) + '">' + escapeHTML(text) + t + s + "</div>"
|
|
371
371
|
}
|
|
372
372
|
exports.generateChip = generateChip
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -372,7 +372,7 @@ export function escapeHTML(input: string): string {
|
|
|
372
372
|
}
|
|
373
373
|
export function generateChip(value: string, text: string, noClose?: boolean, hasStar?: boolean): string {
|
|
374
374
|
const s = noClose ? "" : `<span class="close" onclick="removeChip(event)"></span>`
|
|
375
|
-
const t = hasStar ? `<i class="star
|
|
375
|
+
const t = hasStar ? `<i class="star"></i>` : ""
|
|
376
376
|
return `<div class="chip" data-value="${escapeHTML(value)}">${escapeHTML(text)}${t}${s}</div>`
|
|
377
377
|
}
|
|
378
378
|
export function generateTags(v?: string[] | null, noClose?: boolean): string {
|