garysieling / garysieling/jquery-highlighttextarea

Allow regex objects

Open
#39 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
157
Forks
72
PR merge metrics
No merged PRs in 30d

Description

The `words` parameter accept regex stored as strings ONLY (used with RegExp object)
Should also directly accept RegExp object for nicer syntax and choice of flags

``` js
words:[
'string regex', // used with gm or igm flags
/litteral regex/gm,
new RegExp('custom string regex', 'm')
]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.