mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
This commit is contained in:
parent
363a0dd425
commit
30d1c046ff
@ -8,11 +8,11 @@ export function resolveWhitespacePosition(info: string, defaultPosition?: boolea
|
||||
return false
|
||||
}
|
||||
|
||||
defaultPosition = defaultPosition === true ? undefined : defaultPosition
|
||||
const position = defaultPosition === true ? undefined : defaultPosition
|
||||
|
||||
const match = info.match(WHITESPACE_REGEXP)
|
||||
if (match) {
|
||||
return (match[1] || defaultPosition || 'all') as WhitespacePosition
|
||||
return (match[1] || position || 'all') as WhitespacePosition
|
||||
}
|
||||
return defaultPosition ?? false
|
||||
return defaultPosition === true ? 'all' : defaultPosition ?? false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user