Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 263 Bytes

File metadata and controls

15 lines (8 loc) · 263 Bytes

unicode-wb

Unicode regexp string for detecting Word Boundary.

Usage

const { WORD_BOUNDARY } = require('unicode-wb');

const reg  = new RegExp(WORD_BOUNDARY + 'България' + WORD_BOUNDARY, 'i');

reg.test('text България') // true