chordsheetjs 14.3.0 → 14.3.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/lib/bundle.js +11 -2
- package/lib/bundle.min.js +75 -75
- package/lib/index.js +10 -2
- package/lib/index.js.map +1 -1
- package/lib/main.d.ts +8 -2
- package/lib/main.d.ts.map +1 -1
- package/lib/module.js +10 -2
- package/lib/module.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5542,12 +5542,19 @@ const $7251dad5f4a4c35f$var$translateTagNameAlias = (name)=>{
|
|
|
5542
5542
|
return ($7251dad5f4a4c35f$var$DIRECTIVES_WITH_RENDERABLE_LABEL.includes(this.name) || this.isSectionStart()) && this.hasLabel();
|
|
5543
5543
|
}
|
|
5544
5544
|
/**
|
|
5545
|
-
* Checks whether the tag is
|
|
5545
|
+
* Checks whether the tag is a standard meta tag, a custom meta directive (`{x_some_name}`)
|
|
5546
|
+
* or a non-standard meta tag (`{meta: name value}`)
|
|
5546
5547
|
* @returns {boolean}
|
|
5547
5548
|
*/ isMetaTag() {
|
|
5548
5549
|
return this._isMetaTag || $7251dad5f4a4c35f$var$CUSTOM_META_TAG_NAME_REGEX.test(this.name) || $7251dad5f4a4c35f$export$57ecf0dc09effb3.indexOf(this.name) !== -1;
|
|
5549
5550
|
}
|
|
5550
5551
|
/**
|
|
5552
|
+
* Checks whether this tag is a standard meta tag or a custom meta directive (`{x_some_name}`)
|
|
5553
|
+
* @returns {boolean}
|
|
5554
|
+
*/ isStandardOrCustomMetaTag() {
|
|
5555
|
+
return $7251dad5f4a4c35f$export$57ecf0dc09effb3.indexOf(this.name) !== -1 || $7251dad5f4a4c35f$var$CUSTOM_META_TAG_NAME_REGEX.test(this.name);
|
|
5556
|
+
}
|
|
5557
|
+
/**
|
|
5551
5558
|
* Returns a clone of the tag.
|
|
5552
5559
|
* @returns {Tag} The cloned tag
|
|
5553
5560
|
*/ clone() {
|
|
@@ -6379,6 +6386,7 @@ var $15f1d40e3d1ed3a0$export$2e2bcd8739ae039 = $15f1d40e3d1ed3a0$var$Ternary;
|
|
|
6379
6386
|
formatMetadataSection(metadataLines) {
|
|
6380
6387
|
return metadataLines.map((line)=>{
|
|
6381
6388
|
const tag = line.items[0];
|
|
6389
|
+
if (!tag.isStandardOrCustomMetaTag()) return `{meta: ${tag.originalName} ${tag.value}}`;
|
|
6382
6390
|
return this.formatTag(tag);
|
|
6383
6391
|
});
|
|
6384
6392
|
}
|
|
@@ -37538,7 +37546,7 @@ const $a5a21ced491ea51f$var$endSectionTags = {
|
|
|
37538
37546
|
var $a5a21ced491ea51f$export$2e2bcd8739ae039 = $a5a21ced491ea51f$var$UltimateGuitarParser;
|
|
37539
37547
|
|
|
37540
37548
|
|
|
37541
|
-
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = '14.3.
|
|
37549
|
+
var $ae92e002ce14f11a$export$2e2bcd8739ae039 = '14.3.1';
|
|
37542
37550
|
|
|
37543
37551
|
|
|
37544
37552
|
|