Skip to content

Commit

Permalink
fix: change number regex to not use lookbehind (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadeira authored and scriptcoded committed Mar 16, 2023
1 parent 7340f22 commit 8e52120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const highlighters = [
},
{
name: 'number',
regex: /((?<![a-zA-z])\d+(?:\.\d+)?)/g
regex: /(\b\d+(?:\.\d+)?)/g
},
{
name: 'string',
Expand Down

0 comments on commit 8e52120

Please sign in to comment.