Skip to content

Commit

Permalink
Mark octal escapes as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Aug 20, 2023
1 parent efee489 commit 4c378ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,10 @@ export const wordBoundary = r.wordBoundary;
export const exactly = r.exactly;

/**
* @deprecated Octal escape sequences (\\ followed by one, two, or three octal digits) are deprecated in string and regular expression literals.
*
* ----------------------
*
* Match a character with the given code point in base-8.
*
* Notes:
Expand Down
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,9 @@ export interface RegExpToken {
get exactly(): LiteralFunction & IncompleteToken;

/**
* @deprecated Octal escape sequences (\\ followed by one, two, or three octal digits) are deprecated in string and regular expression literals.
*
* ----------------------
* Match a character with the given code point in base-8.
*
* Notes:
Expand Down

0 comments on commit 4c378ba

Please sign in to comment.