Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mc2 committed Oct 25, 2023
1 parent 3684cac commit eb491b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ia-topnav/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
https://git.archive.org/www/offshoot/-/blob/main/guides/update-top-nav.md
## Installation

## Add to your project
```bash
yarn add @internetarchive/ia-topnav
```
Expand Down
1 change: 1 addition & 0 deletions packages/ia-topnav/src/primary-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class PrimaryNav extends TrackedElement {
}

get isRTL() {
// https://stackoverflow.com/questions/12006095/javascript-how-to-check-if-character-is-rtl
const ltrChars = 'A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02B8\u0300-\u0590\u0800-\u1FFF'+'\u2C00-\uFB1C\uFDFE-\uFE6F\uFEFD-\uFFFF';
const rtlChars = '\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC';
const rtlCheck = new RegExp('^[^'+ltrChars+']*['+rtlChars+']');
Expand Down

0 comments on commit eb491b1

Please sign in to comment.