Remove the \$ and replace with $ the \ escape is not needed.

This commit is contained in:
Mark Crane
2014-02-04 00:49:16 +00:00
parent 7c586ecd77
commit 382b293f8a

View File

@@ -257,7 +257,7 @@
if (r.dialplan_detail_type == "destination_number") then
if (api:execute("regex", "m:~"..destination_number.."~"..r.dialplan_detail_data) == "true") then
--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
regex_match = true
end