-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize performance by replacing regex by char code checks (#326)
* Optimize performance by replacing regex by char code checks * Fix formatting * SonarQube recommended fix * Add one more test * Document character codes
- Loading branch information
Showing
5 changed files
with
217 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const CHAR_OPEN = 123; // { | ||
export const CHAR_CLOSE = 125; // } | ||
export const CHAR_SEP = 44; // , | ||
export const CHAR_SUB_VAR = 35; // # | ||
export const CHAR_ESCAPE = 39; // ' | ||
|
||
export const CHAR_0 = 48; // 0 | ||
export const CHAR_9 = 57; // 9 | ||
export const CHAR_MINUS = 45; // - |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.