zhongjiajie commented on code in PR #9457:
URL: https://github.com/apache/dolphinscheduler/pull/9457#discussion_r848205672
##########
docs/img_utils.py:
##########
@@ -61,7 +61,7 @@ def get_paths_rel_path(paths: Set[Path], rel: Path) -> Set:
def get_docs_img_path(paths: Set[Path]) -> Set:
"""Get all img syntax from given :param:`paths` using the regexp from
:param:`pattern`."""
res = set()
- pattern = re.compile(r"/img[\w./-]*")
+ pattern = re.compile(r"/img[\w./-]+")
Review Comment:
I change `*` to `+`. Because we need one or more char here, otherwise we
will match not expect string like `src/js/conf/home/pages/dag/img` in file
`frontend-development.md` cc: @EricGao888
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]