Skip to content

Commit eab8645

Browse files
committed
fix: add missing slice method to strings in expressions
1 parent 8b70dea commit eab8645

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/sdk/src/expression.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ describe("lint expression", () => {
226226
"replace",
227227
"split",
228228
"at",
229+
"slice",
229230
"endsWith",
230231
"includes",
231232
"startsWith",

packages/sdk/src/expression.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const allowedStringMethods = new Set([
3333
"toLowerCase",
3434
"replace",
3535
"split",
36+
"slice",
3637
"at",
3738
"endsWith",
3839
"includes",

0 commit comments

Comments
 (0)