Modify character limit numbers
This commit is contained in:
parent
c594e32bc7
commit
1d34a5989e
@ -1,9 +1,9 @@
|
|||||||
import type { Nag, NagContext } from '../../types/nags'
|
import type { Nag, NagContext } from '../../types/nags'
|
||||||
import { useVIntl, defineMessage } from '@vintl/vintl'
|
import { useVIntl, defineMessage } from '@vintl/vintl'
|
||||||
|
|
||||||
export const MIN_DESCRIPTION_CHARS = 500
|
export const MIN_DESCRIPTION_CHARS = 200
|
||||||
export const MAX_HEADER_LENGTH = 100
|
export const MAX_HEADER_LENGTH = 80
|
||||||
export const MIN_SUMMARY_CHARS = 35
|
export const MIN_SUMMARY_CHARS = 30
|
||||||
|
|
||||||
function analyzeHeaderLength(markdown: string): { hasLongHeaders: boolean; longHeaders: string[] } {
|
function analyzeHeaderLength(markdown: string): { hasLongHeaders: boolean; longHeaders: string[] } {
|
||||||
if (!markdown) return { hasLongHeaders: false, longHeaders: [] }
|
if (!markdown) return { hasLongHeaders: false, longHeaders: [] }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user