lib/qlang/parser/func_parser.rb in qlang-0.0.27180000 vs lib/qlang/parser/func_parser.rb in qlang-0.0.27182000
- old
+ new
@@ -4,10 +4,10 @@
module FuncParser
include Base
include Lexer::Tokens
def execute(string)
def_func, formula = string.split(/ *= */)
- def_func =~ %r@(#{FUNCV})#{LPRN}#{ANYSP}(#{VARS_BY_CMA})#{ANYSP}#{RPRN}@
+ def_func =~ /(#{USER_FUNC})#{LPRN}#{ANYSP}(#{VARS_BY_CMA})#{ANYSP}#{RPRN}/
FuncApi.execute($1, $2.split(' *,'), FormulaParser.execute(formula))
end
module_function :execute
end
end