Skip to content

Commit

Permalink
Use plain regex literal
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Nov 18, 2022
1 parent b2c62b5 commit 88cef6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/som/primitives/StringPrimitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function _isWhiteSpace(_frame, args) {
function _isLetters(_frame, args) {
const s = args[0].getEmbeddedString();

if (RegExp(/^\p{L}+$/, 'u').test(s)) {
if (/^\p{L}+$/u.test(s)) {
return universe.trueObject;
}
return universe.falseObject;
Expand Down

0 comments on commit 88cef6e

Please sign in to comment.