feat: add word break option #212
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export const NUMBER_REG = /[0-9]/
|
||||
export const LETTER_REG = /[a-zA-Z]/
|
||||
export const NUMBER_LIKE_REG = /[0-9.]/
|
||||
export const CHINESE_REG = /[\u4e00-\u9fa5]/
|
||||
export const CHINESE_REG = /[\u4e00-\u9fa5]/
|
||||
export const WORD_LIKE_REG = /[^a-zA-Z][a-zA-Z]/
|
||||
@@ -33,4 +33,9 @@ export enum PageMode {
|
||||
export enum PaperDirection {
|
||||
VERTICAL = 'vertical',
|
||||
HORIZONTAL = 'horizontal'
|
||||
}
|
||||
|
||||
export enum WordBreak {
|
||||
BREAK_ALL = 'break-all',
|
||||
BREAK_WORD = 'break-word'
|
||||
}
|
||||
Reference in New Issue
Block a user