@simplism/core
Advanced tools
Comparing version 3.2.4 to 3.2.9
@@ -8,3 +8,3 @@ "use strict"; | ||
LambdaParser.parse = function (predicate) { | ||
var matches = predicate.toString().match(/function\s?\(([^)]*)\)[^{]*{((?!return)(.|\r|\n))*return\s+((.|\r|\n)*);?\s?}$/); | ||
var matches = predicate.toString().match(/function\s?\(([^)]*)\)[^{]*{((?!return)(.|\r|\n))*return\s?((.|\r|\n)*);?\s?}$/); | ||
if (!matches) { | ||
@@ -11,0 +11,0 @@ throw new Exception_1.Exception("Lambda 파싱 실패:\n" + predicate.toString() + "\n)"); |
@@ -12,4 +12,4 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "3.2.4", | ||
"version": "3.2.9", | ||
"dependencies": {} | ||
} |
@@ -5,3 +5,3 @@ import {Exception} from "../exceptions/Exception"; | ||
static parse(predicate: (...args: any[]) => any): { params: string[]; returnContent: string } { | ||
const matches = predicate.toString().match(/function\s?\(([^)]*)\)[^{]*{((?!return)(.|\r|\n))*return\s+((.|\r|\n)*);?\s?}$/); | ||
const matches = predicate.toString().match(/function\s?\(([^)]*)\)[^{]*{((?!return)(.|\r|\n))*return\s?((.|\r|\n)*);?\s?}$/); | ||
if (!matches) { | ||
@@ -8,0 +8,0 @@ throw new Exception("Lambda 파싱 실패:\n" + predicate.toString() + "\n)"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package