Skip to content

feat: add assert/is-well-formed-string #1388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Feb 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
3f86dfb
feat: added string/is-well-formed-string
gunjjoshi Feb 26, 2024
6b7d7e9
feat: added assert/is-well-formed-string
gunjjoshi Feb 26, 2024
6cd7771
Update lib/node_modules/@stdlib/assert/is-well-formed-string/README.md
gunjjoshi Feb 27, 2024
bb2f66a
Update package.json
gunjjoshi Feb 27, 2024
e0c96de
Update lib/node_modules/@stdlib/assert/is-well-formed-string/lib/prim…
gunjjoshi Feb 27, 2024
2928ca8
Update lib/node_modules/@stdlib/assert/is-well-formed-string/README.md
gunjjoshi Feb 27, 2024
bb7cbe4
Update lib/node_modules/@stdlib/assert/is-well-formed-string/README.md
gunjjoshi Feb 27, 2024
aa1220a
Update lib/node_modules/@stdlib/assert/is-well-formed-string/README.md
gunjjoshi Feb 27, 2024
522ae16
Update lib/node_modules/@stdlib/assert/is-well-formed-string/README.md
gunjjoshi Feb 27, 2024
0de80cc
Update lib/node_modules/@stdlib/assert/is-well-formed-string/docs/typ…
gunjjoshi Feb 27, 2024
7055a64
Update lib/node_modules/@stdlib/assert/is-well-formed-string/docs/typ…
gunjjoshi Feb 27, 2024
f831f88
Update lib/node_modules/@stdlib/assert/is-well-formed-string/examples…
gunjjoshi Feb 27, 2024
50930f7
Update lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswe…
gunjjoshi Feb 27, 2024
b458106
Update lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswe…
gunjjoshi Feb 27, 2024
2c2c6ea
Update lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswe…
gunjjoshi Feb 27, 2024
9710381
Update lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswe…
gunjjoshi Feb 27, 2024
a322028
Update lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswe…
gunjjoshi Feb 27, 2024
e887070
Update lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswe…
gunjjoshi Feb 27, 2024
8227c93
Update lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswe…
gunjjoshi Feb 27, 2024
f1542e2
Update iswellformed.js
gunjjoshi Feb 27, 2024
32bf6a4
Update iswellformed.js
gunjjoshi Feb 27, 2024
462cda2
feat: added assert/is-well-formed-string
gunjjoshi Feb 27, 2024
cd5fc1f
Apply suggestions from code review
Planeshifter Feb 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswe…
…llformed.js

Co-authored-by: Philipp Burckhardt <pburckhardt@outlook.com>
Signed-off-by: GUNJ JOSHI <gunjjoshi8372@gmail.com>
  • Loading branch information
gunjjoshi and Planeshifter authored Feb 27, 2024
commit b458106f408c556e6331aeb09d6b59633651ffa2
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function isWellFormed(str) {
return false;
}

// Checking if a high surrogate is present at the last
// Checking if a high surrogate is present at the last position
if (i === str.length - 1 && RE_UTF16_HIGH_SURROGATE.test(str[i])) {
return false;
}
Expand Down