@html-validate/commitlint-config 3.6.6 → 3.6.7
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/commitlint.js +3 -1
- package/package.json +1 -1
package/dist/commitlint.js
CHANGED
|
@@ -233704,10 +233704,12 @@ var scopeMinLength = (parsed, _when = void 0, value = 0) => {
|
|
|
233704
233704
|
};
|
|
233705
233705
|
|
|
233706
233706
|
// node_modules/@commitlint/rules/lib/signed-off-by.js
|
|
233707
|
+
var CHERRY_PICK_REGEX = /^\(cherry picked from commit [0-9a-f]{7,64}\)$/i;
|
|
233707
233708
|
var signedOffBy = (parsed, when = "always", value = "") => {
|
|
233708
233709
|
const lines = toLines(parsed.raw).filter((ln) => (
|
|
233709
233710
|
// skip comments
|
|
233710
|
-
!ln.startsWith("#") && //
|
|
233711
|
+
!ln.startsWith("#") && // skip cherry pick commits
|
|
233712
|
+
!CHERRY_PICK_REGEX.test(ln.trim()) && // ignore empty lines
|
|
233711
233713
|
Boolean(ln)
|
|
233712
233714
|
));
|
|
233713
233715
|
const last = lines[lines.length - 1];
|