idea-nginx icon indicating copy to clipboard operation
idea-nginx copied to clipboard

RegEx named capture group not recognized as variable

Open dandv opened this issue 4 years ago • 0 comments

In the code below, $page is highlighted as an unknown variable.

  location ~ ^/pages/(?<page>[^/]+)/?(edit)?$ {
    root /var/www/website/pages;
    try_files /$page/index.html /index.html =404;
  }

image

dandv avatar Jun 14 '20 09:06 dandv