diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-05-03 18:48:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-05-03 18:48:40 +0900 |
| commit | 4b68abd963031a28e19a8cd2f626e8ba91427b0b (patch) | |
| tree | 2c0270d3c68a682da1289fe2cd4e06e95e2f092e /src/misc/aiscript/evaluator.ts | |
| parent | Fix external service authentication (#4846) (diff) | |
| download | sharkey-4b68abd963031a28e19a8cd2f626e8ba91427b0b.tar.gz sharkey-4b68abd963031a28e19a8cd2f626e8ba91427b0b.tar.bz2 sharkey-4b68abd963031a28e19a8cd2f626e8ba91427b0b.zip | |
割った余りを求める関数をMisskeyPagesに追加
Diffstat (limited to 'src/misc/aiscript/evaluator.ts')
| -rw-r--r-- | src/misc/aiscript/evaluator.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc/aiscript/evaluator.ts b/src/misc/aiscript/evaluator.ts index 2bc866dc43..6beb320442 100644 --- a/src/misc/aiscript/evaluator.ts +++ b/src/misc/aiscript/evaluator.ts @@ -160,6 +160,7 @@ export class ASEvaluator { subtract: (a: number, b: number) => a - b, multiply: (a: number, b: number) => a * b, divide: (a: number, b: number) => a / b, + remind: (a: number, b: number) => a % b, strLen: (a: string) => a.length, strPick: (a: string, b: number) => a[b - 1], strReplace: (a: string, b: string, c: string) => a.split(b).join(c), |