Remove the \$ and replace with $ the \ escape is not needed.
This commit is contained in:
@@ -257,7 +257,7 @@
|
|||||||
if (r.dialplan_detail_type == "destination_number") then
|
if (r.dialplan_detail_type == "destination_number") then
|
||||||
if (api:execute("regex", "m:~"..destination_number.."~"..r.dialplan_detail_data) == "true") then
|
if (api:execute("regex", "m:~"..destination_number.."~"..r.dialplan_detail_data) == "true") then
|
||||||
--get the regex result
|
--get the regex result
|
||||||
destination_result = trim(api:execute("regex", "m:~"..destination_number.."~"..r.dialplan_detail_data.."~\$1"));
|
destination_result = trim(api:execute("regex", "m:~"..destination_number.."~"..r.dialplan_detail_data.."~$1"));
|
||||||
--set match equal to true
|
--set match equal to true
|
||||||
regex_match = true
|
regex_match = true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user